Skip to content

Commit 95e6357

Browse files
committed
Migrate to eslint v9
This includes replacing a deprecated rule with a new plugin
1 parent 7c99072 commit 95e6357

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+3448
-1826
lines changed

.eslintignore

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

.eslintrc.json

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

.eslintrc.json.license

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

apps/benchmark/.eslintrc.json

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

apps/benchmark/.eslintrc.json.license

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

apps/benchmark/eslint.config.mjs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// SPDX-FileCopyrightText: 2025 Friedrich-Alexander-Universitat Erlangen-Nurnberg
2+
//
3+
// SPDX-License-Identifier: AGPL-3.0-only
4+
5+
import baseConfig from '../../eslint.config.mjs';
6+
7+
export default [
8+
{
9+
ignores: ['**/dist'],
10+
},
11+
...baseConfig,
12+
{
13+
languageOptions: {
14+
parserOptions: {
15+
project: [
16+
'apps/benchmark/tsconfig.app.json',
17+
'apps/benchmark/tsconfig.spec.json',
18+
],
19+
},
20+
},
21+
},
22+
{
23+
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
24+
// Override or add rules here
25+
rules: {},
26+
},
27+
{
28+
files: ['**/*.ts', '**/*.tsx'],
29+
// Override or add rules here
30+
rules: {},
31+
},
32+
{
33+
files: ['**/*.js', '**/*.jsx'],
34+
// Override or add rules here
35+
rules: {},
36+
},
37+
{
38+
ignores: ['**/vite.config.*.timestamp*', '**/vitest.config.*.timestamp*'],
39+
},
40+
];

apps/benchmark/project.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "apps/benchmark/src",
55
"projectType": "application",
6+
"tags": [],
67
"targets": {
78
"build": {
89
"options": {
@@ -12,9 +13,7 @@
1213
},
1314
"lint": {
1415
"executor": "@nx/eslint:lint",
15-
"outputs": [
16-
"{options.outputFile}"
17-
]
16+
"outputs": ["{options.outputFile}"]
1817
},
1918
"run": {
2019
"executor": "nx:run-commands",
@@ -31,14 +30,11 @@
3130
},
3231
"test": {
3332
"executor": "@nx/vite:test",
34-
"outputs": [
35-
"{workspaceRoot}/coverage/{projectRoot}"
36-
],
33+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
3734
"options": {
3835
"configFile": "{projectRoot}/vite.config.ts",
3936
"passWithNoTests": false
4037
}
4138
}
42-
},
43-
"tags": []
39+
}
4440
}

apps/benchmark/tsconfig.app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"**/*.test.ts"
1515
],
1616
"include": [
17-
"**/*.ts"
17+
"**/*.ts",
18+
"eslint.config.mjs"
1819
]
1920
}

apps/docs-generator/.eslintrc.json

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

apps/docs-generator/.eslintrc.json.license

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

0 commit comments

Comments
 (0)