Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

typescript eslint rules should only target typescript files #233

Open
noahnu opened this issue Mar 10, 2023 · 0 comments
Open

typescript eslint rules should only target typescript files #233

noahnu opened this issue Mar 10, 2023 · 0 comments

Comments

@noahnu
Copy link
Contributor

noahnu commented Mar 10, 2023

Parsing error: ESLint was configured to run on `<tsconfigRootDir>/gatsby/.eslintrc.js` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

If we only target TS/TSX/MTS/CTS files, I believe we wouldn't have to include the eslintrc file in our tsconfig.json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant