Closed
Description
What code were you trying to parse?
Vue files (see https://github.com/sem4phor/vue-typescript-eslint-bug)
What did you expect to happen?
Parser lints files specified in tsconfig->include
What actually happened?
I have to add extraFileExtensions: [".vue"]
in .eslintrc.js
to lint vue files even its declared in include
option in tsconfig.json
And for all .js files the Parser says:
...
error: Parsing error: If "parserOptions.project" has been set for @typescript-eslint/parser, /Users/semaphor/Projekte/test/.eslintrc.js must be included in at least one of the projects provided at .eslintrc.js:
...
Reproduction:
git clone git@github.com:sem4phor/vue-typescript-eslint-bug.git
- navigate to folder
- npm i
npm run lint
Moreover eslint is not able to parse vue template section of single file components since upgrade of typescript eslint. But i guess thats more a problem of eslint-plugin-vue
.
Versions
package | version |
---|---|
@typescript-eslint/parser |
2.0.0 |
TypeScript |
3.4.3 |
ESLint |
5.16.0 |
node |
11.6.0 |
npm |
6.10.2 |