You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## I get errors telling me "Having many files run with the default project is known to cause performance issues and slow down linting."
13
13
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.
16
16
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.
18
18
For example:
19
19
20
20
```diff title="eslint.config.js"
21
21
parserOptions: {
22
22
EXPERIMENTAL_useProjectService: {
23
-
allowDefaultProjectForFiles: [
23
+
allowDefaultProject: [
24
24
- "**/*.js",
25
25
+ "./*.js"
26
26
]
@@ -122,20 +122,20 @@ See our docs on [type aware linting](../../getting-started/Typed_Linting.mdx) fo
Updatetothelatestversiontoseeamoreinformativeversionofthiserrormessage,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 ...').
## I get errors telling me "Having many files run with the default project is known to cause performance issues and slow down linting."
128
128
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.
131
131
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.
0 commit comments