Skip to content

Commit

Permalink
Allow ESLint to work on the test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
linuswillner committed Jan 24, 2024
1 parent 9244110 commit 123a361
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"parserOptions": {
"ecmaVersion": "latest",
"project": "./tsconfig.json",
"project": "./tsconfig.eslint.json",
"createDefaultProgram": true, // Required for linting to work even on the test folder
"ecmaFeatures": {
"globalReturn": true
Expand Down
9 changes: 9 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"noEmit": true
},
"extends": "./tsconfig.json",
"include": [
"test"
]
}

0 comments on commit 123a361

Please sign in to comment.