Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Labels
Milestone
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I havesearched for related issues and found none that match my proposal.
- I have searched thecurrent rule list and found no rules that match my proposal.
- I haveread the FAQ and my problem is not listed.
Relevant Package
typescript-estree
My proposal is suitable for this project
- I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).
Description
Right now in v8, I can't getparserOptions.projectService.allowDefaultProject to actually allow aneslint.config.js file. Neither'eslint.config.js' nor'./eslint.config.js' are working. Both result in an error message trying to lint:
$ npx eslint eslint.config.js/Users/josh/repos/typescript-eslint-examples/packages/eslint-plugin-example-typed-linting/eslint.config.js 0:0 error Parsing error: /Users/josh/repos/typescript-eslint-examples/packages/eslint-plugin-example-typed-linting/eslint.config.js was not found by the project service. Consider either including it in the tsconfig.json or including it in allowDefaultProjectAs reported by@RebeccaStevens in Discord (https://discord.com/channels/1026804805894672454/1228823100070821989/1266272722946621470), the globs are being matched against the full file path, not the relevant one.
From some console logging:
"filePathMatchedBy": {"filePath":"/Users/josh/repos/typescript-eslint-examples/packages/eslint-plugin-example-typed-linting/eslint.config.js","allowDefaultProject": ["eslint.config.js" ]}
Additional Info
💖
Co-authored-by:@RebeccaStevens