Skip to content

Tsconfig includes not recognized (typescript-eslint@2.0.0) #853

Closed
@sem4phor

Description

@sem4phor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation ("docs") that needs adding/updatinghas prthere is a PR raised to close thislocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: parserIssues related to @typescript-eslint/parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions