Skip to content

Commit

Permalink
build(deps-dev): bump eslint from 8.57.0 to 9.8.0 (#1697)
Browse files Browse the repository at this point in the history
* 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
dependabot[bot] and fengkx authored Sep 14, 2024
1 parent a971fc7 commit a4632d9
Show file tree
Hide file tree
Showing 10 changed files with 879 additions and 940 deletions.
46 changes: 0 additions & 46 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
npm cache clean --force
npm ci
npm run build
npm run lint
npm test -- --forceExit #https://github.com/facebook/jest/issues/9982#issuecomment-758110298
env:
CI: true
Expand Down
51 changes: 51 additions & 0 deletions eslint.config.mjs
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
}
]
}
}
];
Loading

0 comments on commit a4632d9

Please sign in to comment.