diff --git a/eslint.config.js b/eslint.config.js index 2b8b77f3c..9f212cfc1 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -24,7 +24,7 @@ export default [ }, parser: tseslint.parser, parserOptions: { - project: './tsconfig.json', + project: ['./tsconfig.json', './tsconfig.eslint.json'], ecmaVersion: 2020, sourceType: 'module', extraFileExtensions: ['.vue'] diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 000000000..8a99a1c80 --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,18 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + /* Test files should not be compiled */ + "noEmit": true, + // "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "resolveJsonModule": true + }, + "include": [ + "*.ts", + "*.mts", + "*.config.js", + "browser_tests/**/*.ts", + "tests-ui/**/*.ts" + ] +}