Bug: Hidden (dot) directories aren't globbed in typescript-estree's projects globs #6306
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
Milestone
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
When
parserOptions.project
includes a*
wildcard, the call toglobby
doesn't includedot: true
.typescript-eslint/packages/typescript-estree/src/parseSettings/createParseSettings.ts
Lines 188 to 190 in 4ab9bd7
That means directories like
.test
won't have TSConfigs inside them found.From this
projects
list:...and
tsconfig.json
s at:We can see this in the wild with trpc/trpc#3390. Which is running out of memory in CI 🙃 but you can repro locally at trpc/trpc@3de2e91.
Reproduction Repository Link
https://github.com/JoshuaKGoldberg/repros/tree/b9f06eed94237ebd5a2180988f3ca084b2b6ad5c
Repro Steps
pnpm install
pnpm lint
Alternately, running
pnpm lint
fromexamples/.test/ssg
runs faster and also shows the issues.Versions
@typescript-eslint/eslint-plugin
5.48.0
@typescript-eslint/parser
5.48.0
@typescript-eslint/scope-manager
5.48.0
@typescript-eslint/typescript-estree
5.48.0
@typescript-eslint/type-utils
5.48.0
@typescript-eslint/utils
5.48.0
TypeScript
4.8.3
ESLint
8.30.0
node
18.7.0
The text was updated successfully, but these errors were encountered: