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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant