Skip to content

Commit 6db8d58

Browse files
committed
upgrade to eslint 9
1 parent 8a45108 commit 6db8d58

File tree

9 files changed

+262
-370
lines changed

9 files changed

+262
-370
lines changed

.eslintrc.js

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

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@ updates:
1111
- 'dependencies'
1212
- 'automerge'
1313
- "kodiak: merge.method = 'squash'"
14-
ignore:
15-
# Need to wait until every plugin support eslint 9
16-
#
17-
# It also dropped support for .eslintrc file in favor of flat config
18-
# Which means that we might need to completely rewrite/restructure our config
19-
#
20-
# ref: https://eslint.org/docs/latest/use/configure/migration-guide
21-
#
22-
- dependency-name: eslint
23-
versions:
24-
- '>= 9'
2514
groups:
2615
babel:
2716
patterns:
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
LGTM :+1:
22

3-
#### Review checklist according to [SOP-13][1] & [SOP-014][2]
3+
#### Review checklist according to SOP-13 & SOP-014
44

55
- [ ] Code is readable
66
- [ ] Test coverage is appropriate
77
- [ ] CHANGELOG entry is correct
88
- [ ] I manually tested the changes and checked that related features do not have any regressions
99
- [ ] I confirmed that all specifications linked to the issue are fulfilled
1010
- [ ] I checked newly added dependencies for their licenses
11-
12-
[1]: https://drive.google.com/file/d/1fD1ZcsBTywlMVTObTmNLrg55khrYMI_L/view
13-
[2]: https://drive.google.com/file/d/1uRnMtykgw1Gzo2nRp-TPnESgmYoEIfBf/view

.github/settings.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.
File renamed without changes.

eslint.config.mjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineConfig } from 'eslint/config';
2+
import jest from 'eslint-plugin-jest';
3+
import nodeConfig from '@laboperator-gmbh/eslint-config-node';
4+
5+
export default defineConfig(
6+
nodeConfig,
7+
{ ignores: ['**/dist'] },
8+
{
9+
rules: {
10+
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
11+
},
12+
},
13+
{
14+
files: ['**/__tests__/**/*.test.ts'],
15+
16+
extends: [jest.configs['flat/recommended']],
17+
rules: {
18+
'max-nested-callbacks': 'off',
19+
},
20+
},
21+
);

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
},
4242
"devDependencies": {
4343
"@babel/core": "^7.28.5",
44-
"@laboperator-gmbh/config": "~0.1.10",
45-
"@laboperator-gmbh/eslint-config-node": "~0.1.10",
44+
"@laboperator-gmbh/config": "~0.2.0",
45+
"@laboperator-gmbh/eslint-config-node": "~0.2.0",
4646
"@types/jest": "^30.0.0",
4747
"@types/lodash": "^4.17.21",
4848
"@types/node": "^24.10.1",
49-
"eslint": "^8.57.1",
49+
"eslint": "^9.39.1",
5050
"eslint-plugin-jest": "^29.2.1",
5151
"fast-glob": "^3.3.3",
5252
"husky": "^9.1.7",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@laboperator-gmbh/config/tsconfig.json",
2+
"extends": "@laboperator-gmbh/config/tsconfig",
33
"compilerOptions": {
44
"baseUrl": ".",
55
"declaration": true,

0 commit comments

Comments
 (0)