-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug (v8): .js files not found with parserOptions.project set to tsconfig.eslint.json including **/*.js #9749
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
Comments
It doesn't have |
...which brings up the question, why was this passing in v7? What changed? |
IDK we can poke and see what might have caused it |
we enabled single run inference by default -- maybe that changed their lint run? |
I AM NOT THE ONLY ONE! THIS WAS DRIVING ME BANANAS! I have this problem using both the classic I am experiencing it with |
Aha! For Btw, for the project service, the only way to load in a file other than that is the |
@JoshuaKGoldberg Aha back at ya! That does make sense (despite being super tired — dog was bruffing all night at the neighborhood). What if I want do not include stuff in my tsconfig.json and it is my primary “build” config? I have a million “tsconfig.eslint.json” files and flip flopping my build setups around sounds annoying. Does projectService grep around for adjacent tsconfig looking things? |
Then your best bet is to stick with Anyway, this specific issue was meant to be for |
Sounds good to me! Thanks for your speedy responses. I guess moving to using “tsconfig.build.json” isn’t a terrible thing. |
Ok! Added a note to #9753 (comment) that this is an FAQ. Thanks all! |
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
Coming over from maxnowack/signaldb#817: with v7,
npm run lint
passes in that repository. But when upgrading to v8:...despite
parserOptions.project: './tsconfig.eslint.json'
explicitly havinginclude: ["**/*.js"]
(among other entries).Reproduction Repository Link
https://github.com/maxnowack/signaldb/tree/ab50bdeb84dbcc3ce6241b1ac53d239eef6d08d2
Repro Steps
npm install
npm run lint
Versions
@typescript-eslint/eslint-plugin
8.0.1
@typescript-eslint/parser
8.0.1
TypeScript
5.5.4
ESLint
8.57.0
💖
The text was updated successfully, but these errors were encountered: