Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Nov 23, 2024
1 parent 9f04b44 commit 46af81a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/eslint-config/src/config/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export function typescript(project?: string) {
parserOptions: {
...jsConfig.languageOptions.parserOptions,
tsconfigRootDir: process.cwd(),
// Setting `projectService: true` or `project: true` is pretty slow when lint a monorepo with many tsconfig.json files in each sub-app.
// For a better performance, we are recommended using one tsconfig.json file in a project.
// Waiting for typescript-eslint to officially provide a better way to use `projectService`.
project: project ?? "tsconfig.json",
},
},
Expand Down

0 comments on commit 46af81a

Please sign in to comment.