You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running eslint for the test directory will cause the following error:
/.../test/many-tests.spec.ts
0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: test/many-tests.spec.ts.
The file must be included in at least one of the projects provided
This is because if you run eslint --print-config test/many-tests.spec.ts you'll see the parserOptions' project looks like this:
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"generators": false,
"objectLiteralDuplicateProperties": false
},
"project": "./tsconfig.json" <-- this should also include ./test/tsconfig.json
},
Would it be possible to get support for this situation?
The text was updated successfully, but these errors were encountered:
Given have a project that looks like this:
Running
eslint
for the test directory will cause the following error:This is because if you run
eslint --print-config test/many-tests.spec.ts
you'll see the parserOptions' project looks like this:Would it be possible to get support for this situation?
The text was updated successfully, but these errors were encountered: