Merge pull request #1922 from h3poteto/dependabot/npm_and_yarn/eslint-config-standard-16.0.2

Bump eslint-config-standard from 14.1.1 to 16.0.2
This commit is contained in:
AkiraFukushima 2020-11-30 23:03:01 +09:00 committed by GitHub
commit e0e88d1b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 13 deletions

View File

@ -248,7 +248,7 @@
"electron-packager": "^15.0.0", "electron-packager": "^15.0.0",
"eslint": "^7.12.1", "eslint": "^7.12.1",
"eslint-config-prettier": "^6.15.0", "eslint-config-prettier": "^6.15.0",
"eslint-config-standard": "^14.1.1", "eslint-config-standard": "^16.0.2",
"eslint-friendly-formatter": "^4.0.1", "eslint-friendly-formatter": "^4.0.1",
"eslint-loader": "^4.0.2", "eslint-loader": "^4.0.2",
"eslint-plugin-html": "^6.0.3", "eslint-plugin-html": "^6.0.3",

View File

@ -6,7 +6,7 @@ const locales = ['de', 'fr', 'it', 'ja', 'ko', 'pl', 'zh_cn']
describe('i18n', () => { describe('i18n', () => {
describe('should not define duplicate keys', () => { describe('should not define duplicate keys', () => {
locales.map(locale => { locales.forEach(locale => {
it(`${locale} translation`, () => { it(`${locale} translation`, () => {
const targetJson = JSON.parse( const targetJson = JSON.parse(
fs.readFileSync(path.resolve(__dirname, `../../src/config/locales/${locale}/translation.json`), 'utf8') fs.readFileSync(path.resolve(__dirname, `../../src/config/locales/${locale}/translation.json`), 'utf8')

View File

@ -82,7 +82,7 @@ if (process.env.NODE_ENV !== 'development') {
let mainWindow: BrowserWindow | null let mainWindow: BrowserWindow | null
let tray: Tray | null let tray: Tray | null
const winURL = process.env.NODE_ENV === 'development' ? `http://localhost:9080` : `file://${__dirname}/index.html` const winURL = process.env.NODE_ENV === 'development' ? `http://localhost:9080` : path.join('file://', __dirname, '/index.html')
// MAS build is not allowed requestSingleInstanceLock. // MAS build is not allowed requestSingleInstanceLock.
// ref: https://github.com/h3poteto/whalebird-desktop/issues/1030 // ref: https://github.com/h3poteto/whalebird-desktop/issues/1030
@ -113,7 +113,7 @@ const appId = pkg.build.appId
const splashURL = const splashURL =
process.env.NODE_ENV === 'development' process.env.NODE_ENV === 'development'
? path.resolve(__dirname, '../../static/splash-screen.html') ? path.resolve(__dirname, '../../static/splash-screen.html')
: `${__dirname}/static/splash-screen.html` : path.join(__dirname, '/static/splash-screen.html')
// https://github.com/louischatriot/nedb/issues/459 // https://github.com/louischatriot/nedb/issues/459
const userData = app.getPath('userData') const userData = app.getPath('userData')
@ -586,7 +586,7 @@ ipcMain.on('start-all-user-streamings', (event: IpcMainEvent, accounts: Array<Lo
}) })
ipcMain.on('stop-all-user-streamings', () => { ipcMain.on('stop-all-user-streamings', () => {
Object.keys(userStreamings).map((key: string) => { Object.keys(userStreamings).forEach((key: string) => {
if (userStreamings[key]) { if (userStreamings[key]) {
userStreamings[key]!.stop() userStreamings[key]!.stop()
userStreamings[key] = null userStreamings[key] = null
@ -599,7 +599,7 @@ ipcMain.on('stop-all-user-streamings', () => {
* @param id specified user id in nedb. * @param id specified user id in nedb.
*/ */
const stopUserStreaming = (id: string) => { const stopUserStreaming = (id: string) => {
Object.keys(userStreamings).map((key: string) => { Object.keys(userStreamings).forEach((key: string) => {
if (key === id && userStreamings[id]) { if (key === id && userStreamings[id]) {
userStreamings[id]!.stop() userStreamings[id]!.stop()
userStreamings[id] = null userStreamings[id] = null

View File

@ -234,7 +234,7 @@ const actions: ActionTree<NewTootState, RootState> = {
} }
if (params.polls.length > 1) { if (params.polls.length > 1) {
params.polls.map(poll => { params.polls.forEach(poll => {
if (poll.length < 1) { if (poll.length < 1) {
throw new NewTootPollInvalid() throw new NewTootPollInvalid()
} }
@ -297,7 +297,7 @@ const actions: ActionTree<NewTootState, RootState> = {
commit(MUTATION_TYPES.UPDATE_INITIAL_SPOILER, message.spoiler_text) commit(MUTATION_TYPES.UPDATE_INITIAL_SPOILER, message.spoiler_text)
commit(MUTATION_TYPES.CHANGE_MODAL, true) commit(MUTATION_TYPES.CHANGE_MODAL, true)
let value: number = Visibility.Public.value let value: number = Visibility.Public.value
Object.keys(Visibility).map(key => { Object.keys(Visibility).forEach(key => {
const target = Visibility[key] const target = Visibility[key]
if (target.key === message.visibility) { if (target.key === message.visibility) {
value = target.value value = target.value

View File

@ -1 +1 @@
export const domainFormat = new RegExp(/^[a-zA-Z0-9][a-zA-Z0-9-.]{0,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$/) export const domainFormat = /^[a-zA-Z0-9][a-zA-Z0-9-.]{0,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$/

View File

@ -4676,10 +4676,10 @@ eslint-config-prettier@^6.15.0:
dependencies: dependencies:
get-stdin "^6.0.0" get-stdin "^6.0.0"
eslint-config-standard@^14.1.1: eslint-config-standard@^16.0.2:
version "14.1.1" version "16.0.2"
resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-14.1.1.tgz#830a8e44e7aef7de67464979ad06b406026c56ea" resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-16.0.2.tgz#71e91727ac7a203782d0a5ca4d1c462d14e234f6"
integrity sha512-Z9B+VR+JIXRxz21udPTL9HpFMyoMUEeX1G251EQ6e05WD9aPVtVBn09XUmZ259wCMlCDmYDSZG62Hhm+ZTJcUg== integrity sha512-fx3f1rJDsl9bY7qzyX8SAtP8GBSk6MfXFaTfaGgk12aAYW4gJSyRm7dM790L6cbXv63fvjY4XeSzXnb4WM+SKw==
eslint-friendly-formatter@^4.0.1: eslint-friendly-formatter@^4.0.1:
version "4.0.1" version "4.0.1"