Skip to content

Commit 7dfceee

Browse files
fix: bring back in allowdefaultprojectforfiles rename
1 parent 51a74dc commit 7dfceee

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/troubleshooting/typed-linting/index.mdx

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ slug: /troubleshooting/typed-linting
77
import Tabs from '@theme/Tabs';
88
import TabItem from '@theme/TabItem';
99

10-
<HiddenHeading id="allowdefaultprojectforfiles-glob-too-wide" />
10+
<HiddenHeading id="allowdefaultproject-glob-too-wide" />
1111

1212
## I get errors telling me "Having many files run with the default project is known to cause performance issues and slow down linting."
1313

14-
These errors are caused by using the [`EXPERIMENTAL_useProjectService`](../../packages/Parser.mdx#experimental_useprojectservice) `allowDefaultProjectForFiles` with an excessively wide glob.
15-
`allowDefaultProjectForFiles` causes a new TypeScript "program" to be built for each "out of project" file it includes, which incurs a performance overhead for each file.
14+
These errors are caused by using the [`EXPERIMENTAL_useProjectService`](../../packages/Parser.mdx#experimental_useprojectservice) `allowDefaultProject` with an excessively wide glob.
15+
`allowDefaultProject` causes a new TypeScript "program" to be built for each "out of project" file it includes, which incurs a performance overhead for each file.
1616

17-
To resolve this error, narrow the glob(s) used for `allowDefaultProjectForFiles` to include fewer files.
17+
To resolve this error, narrow the glob(s) used for `allowDefaultProject` to include fewer files.
1818
For example:
1919

2020
```diff title="eslint.config.js"
2121
parserOptions: {
2222
EXPERIMENTAL_useProjectService: {
23-
allowDefaultProjectForFiles: [
23+
allowDefaultProject: [
2424
- "**/*.js",
2525
+ "./*.js"
2626
]
@@ -122,20 +122,20 @@ See our docs on [type aware linting](../../getting-started/Typed_Linting.mdx) fo
122122
You're using an outdated version of `@typescript-eslint/parser`.
123123
Update to the latest version to see a more informative version of this error message, explained [above](#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file 'backlink to I get errors telling me ESLint was configured to run ...').
124124

125-
<HiddenHeading id="allowdefaultprojectforfiles-glob-too-wide" />
125+
<HiddenHeading id="allowdefaultproject-glob-too-wide" />
126126

127127
## I get errors telling me "Having many files run with the default project is known to cause performance issues and slow down linting."
128128

129-
These errors are caused by using the [`EXPERIMENTAL_useProjectService`](../../packages/Parser.mdx#experimental_useprojectservice) `allowDefaultProjectForFiles` with an excessively wide glob.
130-
`allowDefaultProjectForFiles` causes a new TypeScript "program" to be built for each "out of project" file it includes, which incurs a performance overhead for each file.
129+
These errors are caused by using the [`EXPERIMENTAL_useProjectService`](../../packages/Parser.mdx#experimental_useprojectservice) `allowDefaultProject` with an excessively wide glob.
130+
`allowDefaultProject` causes a new TypeScript "program" to be built for each "out of project" file it includes, which incurs a performance overhead for each file.
131131

132-
To resolve this error, narrow the glob(s) used for `allowDefaultProjectForFiles` to include fewer files.
132+
To resolve this error, narrow the glob(s) used for `allowDefaultProject` to include fewer files.
133133
For example:
134134

135135
```diff title="eslint.config.js"
136136
parserOptions: {
137137
EXPERIMENTAL_useProjectService: {
138-
allowDefaultProjectForFiles: [
138+
allowDefaultProject: [
139139
- "**/*.js",
140140
+ "./*.js"
141141
]

0 commit comments

Comments
 (0)