Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parserOptions.project should be nullable #175

Closed
Dimava opened this issue Mar 18, 2023 · 1 comment
Closed

parserOptions.project should be nullable #175

Dimava opened this issue Mar 18, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Dimava
Copy link
Contributor

Dimava commented Mar 18, 2023

Trying to make ESLint lint AND ts-check itself, I encountered the error

Parsing error: ESLint was configured to run on <tsconfigRootDir>/.eslintrc.cjs using parserOptions.project: /tsconfig.json
However, that TSConfig does not include this file. Either:

Alternatively, you can add parserOptions: { project: null } to an override for the files you wish to exclude. Note that { project: undefined } will not work.

Which could be fixed with

  overrides: [{
    "files": [".eslintrc.cjs"],
    parserOptions: { project: null /* <- add nul*/ },
  }],

Which requires parserOptions.project to be nullable as per above link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants