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
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

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