-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[npm-dev]: Bump eslint from 8.54.0 to 9.8.0 and migrate the configura…
…tion (#17) Bumps [eslint](https://github.com/eslint/eslint) from 8.54.0 to 9.8.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.54.0...v9.8.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: Ryuu Mitsuki <dhefam31@gmail.com> Authored-by: dependabot[bot] <support@github.com> Co-authored-by: Ryuu Mitsuki <dhefam31@gmail.com>
- Loading branch information
Showing
9 changed files
with
210 additions
and
282 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/* global module:readonly */ | ||
|
||
module.exports = { | ||
downloadOptions: { | ||
cwd: '.', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
'use strict'; | ||
|
||
const globals = require('globals'); | ||
const js = require('@eslint/js'); | ||
|
||
module.exports = [ | ||
js.configs.recommended, | ||
|
||
{ | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'commonjs', | ||
globals: { | ||
...globals.node, | ||
...globals.es6 | ||
} | ||
}, | ||
linterOptions: { | ||
reportUnusedDisableDirectives: 'error' | ||
}, | ||
rules: { | ||
strict: [ 'error', 'safe' ], | ||
'eol-last': [ 'error', 'always' ], | ||
eqeqeq: [ 'error', 'always' ], | ||
'prefer-const': [ 'warn' ], | ||
'no-unused-vars': [ 'error', { | ||
argsIgnorePattern: '^_+', | ||
varsIgnorePattern: '^_+' | ||
}], | ||
'max-len': [ 'warn', { | ||
code: 90, | ||
ignoreComments: true, | ||
ignoreTrailingComments: true, | ||
ignoreUrls: true, | ||
ignoreStrings: true, | ||
ignoreRegExpLiterals: true | ||
}], | ||
indent: [ 'error', 2, { | ||
SwitchCase: 1, | ||
VariableDeclarator: 'first', | ||
FunctionExpression: { | ||
parameters: 'first', | ||
body: 1 | ||
} | ||
}], | ||
'linebreak-style': [ 'warn', 'unix' ], | ||
quotes: [ 'warn', 'single', { avoidEscape: false } ], | ||
semi: [ 'error', 'always' ], | ||
camelcase: [ 'error', { properties: 'always' } ], | ||
curly: [ 'error', 'multi-line', 'consistent' ], | ||
'no-else-return': ['error'], | ||
'default-param-last': ['error'], | ||
}, | ||
ignores: [ | ||
'jsdoc.*', | ||
'jsdoc.config.*', | ||
'docs/**', | ||
'config/example/**' | ||
] | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.