Skip to content

Commit 991795a

Browse files
committed
chore(console): upgrade eslint to 9. Fix linting issues
1 parent 56ca800 commit 991795a

File tree

30 files changed

+479
-518
lines changed

30 files changed

+479
-518
lines changed

.github/workflows/services-build.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ jobs:
9595
fetch-tags: true
9696

9797
- name: Log in to Docker Hub
98-
if: ${{ !inputs.dont_publish }}
9998
uses: docker/login-action@v3
10099
with:
101100
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -198,7 +197,6 @@ jobs:
198197
submodules: true
199198

200199
- name: Log in to Docker Hub
201-
if: ${{ !inputs.dont_publish }}
202200
uses: docker/login-action@v3
203201
with:
204202
username: ${{ secrets.DOCKERHUB_USERNAME }}

libs/jsondiffpatch/.eslintignore

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

libs/jsondiffpatch/.eslintrc.cjs

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
const { defineConfig, globalIgnores } = require("eslint/config");
2+
3+
const typescriptEslint = require("@typescript-eslint/eslint-plugin");
4+
const tsParser = require("@typescript-eslint/parser");
5+
const js = require("@eslint/js");
6+
7+
const { FlatCompat } = require("@eslint/eslintrc");
8+
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all,
13+
});
14+
15+
module.exports = defineConfig([
16+
{
17+
extends: compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended-type-checked"),
18+
19+
plugins: {
20+
"@typescript-eslint": typescriptEslint,
21+
},
22+
23+
languageOptions: {
24+
parser: tsParser,
25+
26+
parserOptions: {
27+
project: true,
28+
tsconfigRootDir: __dirname,
29+
},
30+
},
31+
},
32+
{
33+
files: ["test/**/*.ts"],
34+
extends: compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended-type-checked"),
35+
36+
plugins: {
37+
"@typescript-eslint": typescriptEslint,
38+
},
39+
40+
languageOptions: {
41+
parser: tsParser,
42+
43+
parserOptions: {
44+
project: "./test/tsconfig.json",
45+
tsconfigRootDir: __dirname,
46+
},
47+
},
48+
},
49+
globalIgnores([
50+
"**/*\\{.,-}min.js",
51+
"**/node_modules",
52+
"**/build",
53+
"**/.git",
54+
"**/coverage",
55+
"**/dist",
56+
"**/lib",
57+
"eslint.config.cjs",
58+
"jest.config.cjs",
59+
]),
60+
]);

libs/jsondiffpatch/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
},
3737
"devDependencies": {
3838
"@types/jest": "^29.5.10",
39-
"@typescript-eslint/eslint-plugin": "^8.12.2",
40-
"@typescript-eslint/parser": "^8.12.2",
39+
"@typescript-eslint/eslint-plugin": "^8.49.0",
40+
"@typescript-eslint/parser": "^8.49.0",
4141
"eslint": "catalog:",
42+
"@eslint/js": "catalog:",
43+
"@eslint/eslintrc": "^3.3.3",
4244
"eslint-config-prettier": "^9.1.0",
4345
"jest": "^29.7.0",
4446
"ts-jest": "^29.1.1",

0 commit comments

Comments
 (0)