-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed as not planned
Closed as not planned
Copy link
Labels
enhancementNew feature or requestNew feature or requestevaluating community engagementwe're looking for community engagement on this issue to show that this problem is widely importantwe're looking for community engagement on this issue to show that this problem is widely importantlocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I have searched for related issues and found none that match my proposal.
- I have searched the current rule list and found no rules that match my proposal.
- I have read 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
I have an eslint config where I'm trying to set up some defaults for all consumers of the config. One of those defaults is to add all test files to the project service:
parserOptions: {
projectService: {
allowDefaultProject: ['./tests/**/*.{ts,js,cjs,mjs}'],
defaultProject: 'tsconfig.json',
},
tsconfigRootDir: import.meta.dirname,
},
That configure is causing Parsing error: allowDefaultProject glob './tests/**/*.{ts,js,cjs,mjs}' contains a disallowed '**'. errors.
I understand the risks and would still like to use that glob pattern. Is there a config setting or any other path forward to allow the ** glob pattern in this case? In this case, the glob pattern is constrained to all subdirectories of a single path (./tests), maybe the validate function could be a bit looser in that case and allow it?
Additional Info
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestevaluating community engagementwe're looking for community engagement on this issue to show that this problem is widely importantwe're looking for community engagement on this issue to show that this problem is widely importantlocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.