Skip to content

Commit 64bf1a6

Browse files
authored
fix: enable isolate mode w/ typescript-eslint v8 (#93)
1 parent 3abe5e4 commit 64bf1a6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/fifty-ladybugs-occur.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-import-x": patch
3+
---
4+
5+
fix: enable isolation parsing w/ typescript-eslint v8

src/utils/parse.ts

+4
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ export function parse(
8989
// "project" or "projects" in parserOptions. Removing these options means the parser will
9090
// only parse one file in isolate mode, which is much, much faster.
9191
// https://github.com/import-js/eslint-plugin-import/issues/1408#issuecomment-509298962
92+
93+
// TODO: prefer https://github.com/typescript-eslint/typescript-eslint/pull/9233 when typescript-eslint v8
94+
// become stable
9295
delete parserOptions.EXPERIMENTAL_useProjectService
96+
delete parserOptions.projectService
9397
delete parserOptions.project
9498
delete parserOptions.projects
9599

0 commit comments

Comments
 (0)