Skip to content

Commit 623f26d

Browse files
deps: upgrade ESLint toolchain to eslint v10 and @typescript-eslint v8 (#1073)
* deps: upgrade ESLint toolchain to eslint v10 and @typescript-eslint v8 - Bump eslint from 8.57.1 to 10.0.3 - Bump @typescript-eslint/eslint-plugin from 7.0.0 to 8.57.1 - Bump @typescript-eslint/parser from 6.21.0 to 8.57.1 - Bump eslint-plugin-mocha from 11.0.0 to 11.2.0 - Bump eslint-plugin-testing-library from 7.15.4 to 7.16.0 - Bump mocha from ^11.0.1 to ^11.7.5 - Bump nyc from 17.1.0 to 18.0.0 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(lint): migrate ESLint config to flat config format for ESLint v10 Replace .eslintrc.js and .eslintignore with eslint.config.js using the new flat config API required since ESLint v9. Disable no-require-imports (CJS project) and no-unused-expressions (Chai assertion pattern). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 64efab5 commit 623f26d

5 files changed

Lines changed: 890 additions & 2057 deletions

File tree

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

eslint.config.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const tsPlugin = require('@typescript-eslint/eslint-plugin');
2+
const tsParser = require('@typescript-eslint/parser');
3+
4+
module.exports = [
5+
{
6+
ignores: ['example/', 'lib/', 'eslint.config.js'],
7+
},
8+
tsPlugin.configs['flat/eslint-recommended'],
9+
...tsPlugin.configs['flat/recommended'],
10+
{
11+
files: ['**/*.ts'],
12+
languageOptions: {
13+
parser: tsParser,
14+
},
15+
rules: {
16+
'@typescript-eslint/no-explicit-any': 'off',
17+
'@typescript-eslint/no-require-imports': 'off',
18+
'@typescript-eslint/no-unused-expressions': 'off',
19+
semi: [2, 'always'],
20+
},
21+
},
22+
];

0 commit comments

Comments
 (0)