Skip to content

Commit c4715f3

Browse files
chore: upgrade to ESLint v9
1 parent eac4d27 commit c4715f3

File tree

3 files changed

+666
-977
lines changed

3 files changed

+666
-977
lines changed

eslint.config.mjs

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import nodev20 from '@strv/eslint-config-node/v20'
1+
import node from '@strv/eslint-config-node'
22
import nodeopt from '@strv/eslint-config-node/optional'
33
import nodestyle from '@strv/eslint-config-node/style'
44
import ts from '@strv/eslint-config-typescript'
@@ -12,13 +12,13 @@ const globs = {
1212
tests: '**/*.test.ts',
1313
}
1414

15-
/** @type {Array<import("eslint").Linter.FlatConfig>} */
15+
/** @type {Array<import("eslint").Linter.Config>} */
1616
const config = [
1717
{ linterOptions: {
1818
reportUnusedDisableDirectives: true,
1919
} },
2020
{ ignores: ['**/*.js', '**/*.d.ts', 'node_modules'] },
21-
{ files: [globs.ts, globs.mjs], ...nodev20 },
21+
{ files: [globs.ts, globs.mjs], ...node },
2222
{ files: [globs.ts, globs.mjs], ...nodeopt },
2323
{ files: [globs.ts, globs.mjs], ...nodestyle },
2424

@@ -27,12 +27,6 @@ const config = [
2727
{ files: [globs.ts], ...tsstyle },
2828

2929
{ files: [globs.tests], ...mocha },
30-
31-
// Any custom settings to be applied
32-
{ files: [globs.ts],
33-
languageOptions: {
34-
parserOptions: { project: './tsconfig.json' },
35-
} },
3630
]
3731

3832
export default config

0 commit comments

Comments
 (0)