Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Labels
Milestone
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existingopen or closed documentation requests that match my proposal.
- I haveread the FAQ and my problem is not listed.
Suggested Changes
I have been unable to upgrade typescript-eslint past 7.5.0; doing so gives a "Too many files have matched the default project" whenever I try to lint.
My languageOptions are
languageOptions: { parser: tseslint.parser, parserOptions: { EXPERIMENTAL_useProjectService: true, }, },The error I'm getting:
common:lint: <redacted path>common:lint: 0:0 error Parsing error: Too many files (>8) have matched the default project.common:lint: common:lint: Having many files run with the default project is known to cause performance issues and slow down linting.common:lint: common:lint: See https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultprojectforfiles-glob-too-widecommon:lint: common:lint: Matching files:common:lint: - /<redacted path>/node_modules/tinycolor2/esm/tinycolor.jscommon:lint: - /<redacted path>/node_modules/date-fns/esm/endOfMonth/index.jscommon:lint: - /<redacted path>/node_modules/date-fns/esm/lastDayOfMonth/index.jscommon:lint: - /<redacted path>/node_modules/date-fns/esm/startOfDay/index.jscommon:lint: - /<redacted path>/node_modules/date-fns/esm/startOfISOWeek/index.jscommon:lint: - /<redacted path>/node_modules/date-fns/esm/startOfMonth/index.jscommon:lint: - /<redacted path>/node_modules/date-fns/esm/subDays/index.jscommon:lint: - /<redacted path>/node_modules/date-fns/esm/subMonths/index.jscommon:lint: - /<redacted path>/node_modules/sinon/pkg/sinon-esm.jscommon:lint: common:lint: If you absolutely need more files included, set parserOptions.EXPERIMENTAL_useProjectService.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING to a larger valueI've read various issues and docs and none of them answer my question.
- TheFAQ tells me I've configured
allowDefaultProjectForFileswith too wide a glob. This isn't true; I haven't configured the property at all and I can't find what its default is anywhere. - I foundBug: "Too many files (>8) have matched the default project" error triggers on every file after 8 #9032 but it was closed and the issue still persists when I try to use the latest 7.x.
I'm certainly open to the possibility that something is wrong with my linting configuration, but I couldn't find anything in the docs to help me investigate this. (Arenode_modules files supposed to be opened by typescript-eslint?)
From my perspective, it looks like a breaking change was released and it would be nice to at least clarify in the docs how folks with a previously working v7 config can upgrade.