Skip to content

Commit eba81ef

Browse files
authored
[Test] Fix husky rejects all test file commits (#3993)
1 parent f9d92b8 commit eba81ef

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default [
2424
},
2525
parser: tseslint.parser,
2626
parserOptions: {
27-
project: './tsconfig.json',
27+
project: ['./tsconfig.json', './tsconfig.eslint.json'],
2828
ecmaVersion: 2020,
2929
sourceType: 'module',
3030
extraFileExtensions: ['.vue']

tsconfig.eslint.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
/* Test files should not be compiled */
5+
"noEmit": true,
6+
// "strict": true,
7+
"noUnusedLocals": true,
8+
"noUnusedParameters": true,
9+
"resolveJsonModule": true
10+
},
11+
"include": [
12+
"*.ts",
13+
"*.mts",
14+
"*.config.js",
15+
"browser_tests/**/*.ts",
16+
"tests-ui/**/*.ts"
17+
]
18+
}

0 commit comments

Comments
 (0)