-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps-dev): bump eslint from 8.57.0 to 9.8.0 (#1697)
* build(deps-dev): bump eslint from 8.57.0 to 9.8.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.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.57.0...v9.8.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * feat: eslint 9 * chore: linter check * feat: nolyfill * fix: eslint 9 * fix: linter --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: fengkx <liangkx8237@gmail.com>
- Loading branch information
1 parent
a971fc7
commit a4632d9
Showing
10 changed files
with
879 additions
and
940 deletions.
There are no files selected for viewing
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
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,51 @@ | ||
import tsEslint from 'typescript-eslint'; | ||
import globals from 'globals'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import js from '@eslint/js'; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
...tsEslint.configs.recommended, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
...globals.commonjs, | ||
...globals.jest | ||
}, | ||
|
||
parser: tsParser, | ||
ecmaVersion: 2018, | ||
sourceType: 'commonjs' | ||
}, | ||
|
||
rules: { | ||
camelcase: 'off', | ||
radix: ['error', 'as-needed'], | ||
// quotes: 'off', | ||
// 'require-jsdoc': 'off', | ||
// 'require-atomic-updates': 'off', | ||
|
||
'@typescript-eslint/camelcase': 'off', | ||
|
||
// remove after totally rewrite to ts | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'warn', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
args: 'all', | ||
argsIgnorePattern: '^_', | ||
caughtErrors: 'all', | ||
caughtErrorsIgnorePattern: '^_', | ||
destructuredArrayIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
ignoreRestSiblings: true | ||
} | ||
] | ||
} | ||
} | ||
]; |
Oops, something went wrong.