Fix es lint

This commit is contained in:
MartinBraquet
2026-03-01 04:56:21 +01:00
parent 4411ef25b0
commit 59ddb4360e
14 changed files with 29 additions and 9 deletions

View File

@@ -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: {

View File

@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["**/*.ts", "**/*.tsx", "**/*.js"]
}

View File

@@ -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"]
}

View File

@@ -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: {

View File

@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["**/*.ts", "**/*.tsx", "**/*.js"]
}

View File

@@ -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"]
}

View File

@@ -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: {

View File

@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["**/*.ts", "**/*.tsx", "**/*.js"]
}

View File

@@ -27,6 +27,6 @@
"path": "../../common"
}
],
"include": ["src/**/*.ts", "src/**/*.tsx", "jest.config.ts"],
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
}

View File

@@ -16,7 +16,7 @@ export default tseslint.config(
},
languageOptions: {
parserOptions: {
project: './tsconfig.json',
project: ['./tsconfig.json', './tsconfig.eslint.json'],
tsconfigRootDir: import.meta.dirname,
},
globals: {

View File

@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["**/*.ts", "**/*.tsx", "**/*.js"]
}

View File

@@ -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"]
}

4
web/tsconfig.eslint.json Normal file
View File

@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["**/*.ts", "**/*.tsx", "**/*.js"]
}

View File

@@ -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"]
}