Update ESLint TypeScript projectService config

Refines the ESLint TypeScript parser configuration by specifying allowed default projects for certain files and setting the default project to './tsconfig.json'. This improves linting accuracy for the listed files.
This commit is contained in:
Ludy87
2025-09-30 17:46:17 +02:00
parent ea952fb0a7
commit 9b764220a6

View File

@@ -81,7 +81,14 @@ export default defineConfig(
languageOptions: {
parser: tseslint.parser,
parserOptions: {
projectService: true,
projectService: {
allowDefaultProject: [
'src/components/tooltips/usePageSelectionTips.tsx',
'src/reportWebVitals.js',
'src/setupTests.js'
],
defaultProject: './tsconfig.json'
},
tsconfigRootDir: __dirname,
},
globals: {