Open
Description
➡️ Run:
npm i
npm test
❌ You get:
> xo
a.ts:1:7
✖ 1:7 a is assigned a value but never used. @typescript-eslint/no-unused-vars
b.ts:undefined:undefined
✖ 0:0 Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: b.ts.
The file must be included in at least one of the projects provided.
2 errors
Ok, I guess, tsconfig.json
is:
{
"include": [
"a.ts"
]
}
➡️ Change it to include the missing file:
{
"include": [
"a.ts",
"b.ts"
]
}
➡️ Run:
npm test
❌ Same result as above. It's still complaining that b.ts
isn't included but it's included. Crazy.
➡️ Run:
trash node_modules # or # rm -rf node_modules
npm i
npm test
✅ It works.
I also included .eslintrc
with which you can verify that eslint
isn't doing this. Replace test
in package.json
with eslint *.ts
Metadata
Assignees
Labels
No labels
Activity