From eba81efb4b78e49e173bc16707ad6faa80b5d23e Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Tue, 27 May 2025 20:50:15 +1000 Subject: [PATCH] [Test] Fix husky rejects all test file commits (#3993) --- eslint.config.js | 2 +- tsconfig.eslint.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tsconfig.eslint.json 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" + ] +}