Skip to content

Commit

Permalink
fix: enable isolate mode w/ typescript-eslint v8 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored Jun 24, 2024
1 parent 3abe5e4 commit 64bf1a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-ladybugs-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-import-x": patch
---

fix: enable isolation parsing w/ typescript-eslint v8
4 changes: 4 additions & 0 deletions src/utils/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ export function parse(
// "project" or "projects" in parserOptions. Removing these options means the parser will
// only parse one file in isolate mode, which is much, much faster.
// https://github.com/import-js/eslint-plugin-import/issues/1408#issuecomment-509298962

// TODO: prefer https://github.com/typescript-eslint/typescript-eslint/pull/9233 when typescript-eslint v8
// become stable
delete parserOptions.EXPERIMENTAL_useProjectService
delete parserOptions.projectService
delete parserOptions.project
delete parserOptions.projects

Expand Down

0 comments on commit 64bf1a6

Please sign in to comment.