From 9b764220a63f6dafc70677d51b5dd03e18214c5b Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Tue, 30 Sep 2025 17:46:17 +0200 Subject: [PATCH] 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. --- frontend/eslint.config.mjs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs index 3cdecf5ba..a0585f5de 100644 --- a/frontend/eslint.config.mjs +++ b/frontend/eslint.config.mjs @@ -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: {