Skip to content

Commit 4de1c1f

Browse files
feat: move to ESLint v9 👏
BREAKING CHANGE: Projects must now use ESLint v9 in order to use these rulesets.
1 parent 836cdc8 commit 4de1c1f

File tree

12 files changed

+6165
-4939
lines changed

12 files changed

+6165
-4939
lines changed

eslint.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ const configs = [{
1515
node,
1616
optional,
1717
style,
18-
{ files: ['**/*.js', '**/*.mjs'], languageOptions: { sourceType: 'module' } },
19-
{ files: ['**/*.cjs'], languageOptions: { sourceType: 'commonjs' } },
2018
{ rules: {
2119
// TODO: Figure out why ESLint cannot resolve the @typescript-eslint packages
2220
'import/no-unresolved': 'off',

package-lock.json

Lines changed: 6147 additions & 4915 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"Korneliusz Dubieniecki <lekterable@gmail.com>"
1212
],
1313
"devDependencies": {
14-
"@commitlint/cli": "^18.6.0",
15-
"eslint": "^8.57.0",
14+
"@commitlint/cli": "^19",
15+
"eslint": "^9",
1616
"lerna": "^8.1.2",
1717
"remark-cli": "^12.0.0",
1818
"remark-preset-lint-consistent": "^5",

packages/eslint-config-base/index.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,7 @@ const config = {
590590
'vars-on-top': 'warn',
591591

592592
// Ensure an imported module can be resolved to a module on the local filesystem
593-
'import/no-unresolved': ['error', {
594-
commonjs: true,
595-
}],
593+
'import/no-unresolved': ['error'],
596594

597595
// Verifies that all named imports are part of the set of named exports in the referenced module
598596
'import/named': 'error',
@@ -605,8 +603,7 @@ const config = {
605603
'import/first': 'error',
606604

607605
// Enforces names exist at the time they are dereferenced, when imported as a full namespace
608-
// TODO: Re-enable when eslint-plugin-import gets ESLint flat config support
609-
// 'import/namespace': 'error',
606+
'import/namespace': 'error',
610607

611608
// Forbid import of modules using absolute paths
612609
// Node.js allows the import of modules using an absolute path such as */home/xyz/file.js*. That

packages/eslint-config-base/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"Danny Kijkov <daniel.kijkov@strv.com>"
1212
],
1313
"dependencies": {
14-
"@stylistic/eslint-plugin": "^1.6.0",
15-
"eslint-plugin-import": "^2.27.0"
14+
"@stylistic/eslint-plugin": "^2.13.0",
15+
"eslint-plugin-import": "^2.31.0"
1616
},
1717
"engines": {
1818
"node": ">=20"
@@ -30,7 +30,7 @@
3030
"./style": "./style.mjs"
3131
},
3232
"peerDependencies": {
33-
"eslint": "^8"
33+
"eslint": "^9"
3434
},
3535
"publishConfig": {
3636
"access": "public"

packages/eslint-config-base/style.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ const config = {
227227

228228
// Enforce a particular style for multiline comments
229229
// Prefer consecutive line comments for multiline comment block
230-
'multiline-comment-style': ['warn', 'separate-lines'],
230+
'@stylistic/multiline-comment-style': ['warn', 'separate-lines'],
231231

232232
// Enforce newlines between operands of ternary expressions
233233
// Enforce either the whole ternary on a single line or each part of the ternary on its own line

packages/eslint-config-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
],
2626
"license": "BSD-3-Clause",
2727
"peerDependencies": {
28-
"eslint": "^8"
28+
"eslint": "^9"
2929
},
3030
"publishConfig": {
3131
"access": "public"

packages/eslint-config-mocha/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"dependencies": {
1414
"@strv/eslint-config-base": "^4.0.0",
15-
"eslint-plugin-import": "^2.27.0",
15+
"eslint-plugin-import": "^2.31.0",
1616
"eslint-plugin-mocha": "^10.1.0"
1717
},
1818
"engines": {
@@ -30,7 +30,7 @@
3030
],
3131
"license": "BSD-3-Clause",
3232
"peerDependencies": {
33-
"eslint": "^8"
33+
"eslint": "^9"
3434
},
3535
"publishConfig": {
3636
"access": "public"

packages/eslint-config-node/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"dependencies": {
1414
"@strv/eslint-config-base": "^4.0.0",
15-
"eslint-plugin-n": "^16.6.2"
15+
"eslint-plugin-n": "^17.15.0"
1616
},
1717
"engines": {
1818
"node": ">=20"
@@ -32,7 +32,7 @@
3232
"./style": "./style.mjs"
3333
},
3434
"peerDependencies": {
35-
"eslint": "^8"
35+
"eslint": "^9"
3636
},
3737
"publishConfig": {
3838
"access": "public"

packages/eslint-config-node/v20.mjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/eslint-config-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@strv/eslint-config-base": "^4.0.0",
1717
"eslint-plugin-jsx-a11y": "^6.4.1",
1818
"eslint-plugin-react": "^7.23.0",
19-
"eslint-plugin-react-hooks": "^4.2.0"
19+
"eslint-plugin-react-hooks": "^5.0.0"
2020
},
2121
"engines": {
2222
"node": ">=20"
@@ -35,7 +35,7 @@
3535
],
3636
"license": "BSD-3-Clause",
3737
"peerDependencies": {
38-
"eslint": "^8"
38+
"eslint": "^9"
3939
},
4040
"publishConfig": {
4141
"access": "public"

packages/eslint-config-typescript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
],
1313
"dependencies": {
1414
"@strv/eslint-config-base": "^4.0.0",
15-
"@typescript-eslint/eslint-plugin": "^7.0.0",
16-
"@typescript-eslint/parser": "^7.0.0",
15+
"@typescript-eslint/eslint-plugin": "^8.0.0",
16+
"@typescript-eslint/parser": "^8.0.0",
1717
"eslint-import-resolver-typescript": "^3.6.1"
1818
},
1919
"engines": {
@@ -34,7 +34,7 @@
3434
],
3535
"license": "BSD-3-Clause",
3636
"peerDependencies": {
37-
"eslint": "^8"
37+
"eslint": "^9"
3838
},
3939
"publishConfig": {
4040
"access": "public"

0 commit comments

Comments
 (0)