Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bug: Hidden (dot) directories aren't globbed in typescript-estree's projects globs #6306

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: typescript-estreeIssues related to @typescript-eslint/typescript-estree
Milestone
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I havesearched for related issues and found none that matched my issue.
  • I haveread the FAQ and my problem is not listed.

Issue Description

WhenparserOptions.project includes a* wildcard, the call toglobby doesn't includedot: true.

globSync([...globProjects, ...ignoreListInput],{
cwd:tsconfigRootDir,
}),

That means directories like.test won't have TSConfigs inside them found.

From thisprojects list:

project: [  './examples/*/tsconfig.json',  './examples/*/*/tsconfig.json',  './packages/*/tsconfig.json',  './tsconfig.eslint.json',],

...andtsconfig.jsons at:

./examples/.test/ssg/tsconfig.json./packages/next/tsconfig.json./packages/react-query/tsconfig.json./packages/server/tsconfig.json./packages/client/tsconfig.json./tsconfig.json./tsconfig.eslint.json
/Users/josh/repos/repros/examples/.test/ssg/src/utils/trpc.ts  0:0  error  Parsing error: ESLint was configured to run on `<tsconfigRootDir>/examples/.test/ssg/src/utils/trpc.ts` using `parserOptions.project`: - <tsconfigRootDir>/../../../../users/josh/repos/repros/tsconfig.eslint.json- <tsconfigRootDir>/../../../../users/josh/repos/repros/packages/client/tsconfig.json- <tsconfigRootDir>/../../../../users/josh/repos/repros/packages/next/tsconfig.json- <tsconfigRootDir>/../../../../users/josh/repos/repros/packages/react-query/tsconfig.json- <tsconfigRootDir>/../../../../users/josh/repos/repros/packages/server/tsconfig.json

We can see this in the wild withtrpc/trpc#3390. Which is running out of memory in CI 🙃 but you can repro locally attrpc/trpc@3de2e91.

Reproduction Repository Link

https://github.com/JoshuaKGoldberg/repros/tree/b9f06eed94237ebd5a2180988f3ca084b2b6ad5c

Repro Steps

  1. clone the repo
  2. pnpm install
  3. pnpm lint

Alternately, runningpnpm lint fromexamples/.test/ssg runs faster and also shows the issues.

Versions

packageversion
@typescript-eslint/eslint-plugin5.48.0
@typescript-eslint/parser5.48.0
@typescript-eslint/scope-manager5.48.0
@typescript-eslint/typescript-estree5.48.0
@typescript-eslint/type-utils5.48.0
@typescript-eslint/utils5.48.0
TypeScript4.8.3
ESLint8.30.0
node18.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: typescript-estreeIssues related to @typescript-eslint/typescript-estree

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp