From 59ddb4360e60187c4e6169e51366b0b2eeb7e839 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 1 Mar 2026 04:56:21 +0100 Subject: [PATCH] Fix es lint --- backend/api/eslint.config.mjs | 2 +- backend/api/tsconfig.eslint.json | 4 ++++ backend/api/tsconfig.json | 2 +- backend/email/eslint.config.mjs | 2 +- backend/email/tsconfig.eslint.json | 4 ++++ backend/email/tsconfig.json | 2 +- backend/shared/eslint.config.mjs | 2 +- backend/shared/tsconfig.eslint.json | 4 ++++ backend/shared/tsconfig.json | 2 +- common/eslint.config.mjs | 2 +- common/tsconfig.eslint.json | 4 ++++ common/tsconfig.json | 2 +- web/tsconfig.eslint.json | 4 ++++ web/tsconfig.json | 2 +- 14 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 backend/api/tsconfig.eslint.json create mode 100644 backend/email/tsconfig.eslint.json create mode 100644 backend/shared/tsconfig.eslint.json create mode 100644 common/tsconfig.eslint.json create mode 100644 web/tsconfig.eslint.json diff --git a/backend/api/eslint.config.mjs b/backend/api/eslint.config.mjs index 27fbb213..c70d6db5 100644 --- a/backend/api/eslint.config.mjs +++ b/backend/api/eslint.config.mjs @@ -16,7 +16,7 @@ export default tseslint.config( }, languageOptions: { parserOptions: { - project: ['./tsconfig.json', './tsconfig.test.json'], + project: ['./tsconfig.json', './tsconfig.test.json', 'tsconfig.eslint.json'], tsconfigRootDir: import.meta.dirname, }, globals: { diff --git a/backend/api/tsconfig.eslint.json b/backend/api/tsconfig.eslint.json new file mode 100644 index 00000000..eac7c03f --- /dev/null +++ b/backend/api/tsconfig.eslint.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "include": ["**/*.ts", "**/*.tsx", "**/*.js"] +} diff --git a/backend/api/tsconfig.json b/backend/api/tsconfig.json index 22aa48cf..036e85b7 100644 --- a/backend/api/tsconfig.json +++ b/backend/api/tsconfig.json @@ -36,6 +36,6 @@ } ], "compileOnSave": true, - "include": ["src/**/*.ts", "package.json", "backend/api/package.json", "jest.config.ts"], + "include": ["src/**/*.ts", "package.json", "backend/api/package.json"], "exclude": ["**/*.test.ts", "**/*.spec.ts"] } diff --git a/backend/email/eslint.config.mjs b/backend/email/eslint.config.mjs index 27fbb213..c70d6db5 100644 --- a/backend/email/eslint.config.mjs +++ b/backend/email/eslint.config.mjs @@ -16,7 +16,7 @@ export default tseslint.config( }, languageOptions: { parserOptions: { - project: ['./tsconfig.json', './tsconfig.test.json'], + project: ['./tsconfig.json', './tsconfig.test.json', 'tsconfig.eslint.json'], tsconfigRootDir: import.meta.dirname, }, globals: { diff --git a/backend/email/tsconfig.eslint.json b/backend/email/tsconfig.eslint.json new file mode 100644 index 00000000..eac7c03f --- /dev/null +++ b/backend/email/tsconfig.eslint.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "include": ["**/*.ts", "**/*.tsx", "**/*.js"] +} diff --git a/backend/email/tsconfig.json b/backend/email/tsconfig.json index 14bc6de2..6c7db722 100644 --- a/backend/email/tsconfig.json +++ b/backend/email/tsconfig.json @@ -30,5 +30,5 @@ "require": ["tsconfig-paths/register"] }, "references": [{"path": "../../common"}, {"path": "../shared"}], - "include": ["emails/**/*.ts", "emails/**/*.tsx", "jest.config.ts"] + "include": ["emails/**/*.ts", "emails/**/*.tsx"] } diff --git a/backend/shared/eslint.config.mjs b/backend/shared/eslint.config.mjs index 165e8481..98038bff 100644 --- a/backend/shared/eslint.config.mjs +++ b/backend/shared/eslint.config.mjs @@ -15,7 +15,7 @@ export default tseslint.config( }, languageOptions: { parserOptions: { - project: ['./tsconfig.json', './tsconfig.test.json'], + project: ['./tsconfig.json', './tsconfig.test.json', 'tsconfig.eslint.json'], tsconfigRootDir: import.meta.dirname, }, globals: { diff --git a/backend/shared/tsconfig.eslint.json b/backend/shared/tsconfig.eslint.json new file mode 100644 index 00000000..eac7c03f --- /dev/null +++ b/backend/shared/tsconfig.eslint.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "include": ["**/*.ts", "**/*.tsx", "**/*.js"] +} diff --git a/backend/shared/tsconfig.json b/backend/shared/tsconfig.json index 08271689..94aa52da 100644 --- a/backend/shared/tsconfig.json +++ b/backend/shared/tsconfig.json @@ -27,6 +27,6 @@ "path": "../../common" } ], - "include": ["src/**/*.ts", "src/**/*.tsx", "jest.config.ts"], + "include": ["src/**/*.ts", "src/**/*.tsx"], "exclude": ["**/*.test.ts", "**/*.spec.ts"] } diff --git a/common/eslint.config.mjs b/common/eslint.config.mjs index dbdefda9..7342bc50 100644 --- a/common/eslint.config.mjs +++ b/common/eslint.config.mjs @@ -16,7 +16,7 @@ export default tseslint.config( }, languageOptions: { parserOptions: { - project: './tsconfig.json', + project: ['./tsconfig.json', './tsconfig.eslint.json'], tsconfigRootDir: import.meta.dirname, }, globals: { diff --git a/common/tsconfig.eslint.json b/common/tsconfig.eslint.json new file mode 100644 index 00000000..eac7c03f --- /dev/null +++ b/common/tsconfig.eslint.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "include": ["**/*.ts", "**/*.tsx", "**/*.js"] +} diff --git a/common/tsconfig.json b/common/tsconfig.json index e3242c9a..178c6516 100644 --- a/common/tsconfig.json +++ b/common/tsconfig.json @@ -18,6 +18,6 @@ "common/*": ["./src/*", "../lib/*"] } }, - "include": ["src/**/*.ts", "messages/*.json", "jest.config.ts"], + "include": ["src/**/*.ts", "messages/*.json"], "exclude": ["**/*.test.ts", "**/*.spec.ts"] } diff --git a/web/tsconfig.eslint.json b/web/tsconfig.eslint.json new file mode 100644 index 00000000..eac7c03f --- /dev/null +++ b/web/tsconfig.eslint.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "include": ["**/*.ts", "**/*.tsx", "**/*.js"] +} diff --git a/web/tsconfig.json b/web/tsconfig.json index 8cb86cd1..f9a05732 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -28,6 +28,6 @@ "watchOptions": { "excludeDirectories": [".next"] }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "../common/src/**/*.ts", "jest.config.ts"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "../common/src/**/*.ts"], "exclude": ["node_modules", "**/*.test.ts", "**/*.spec.ts"] }