File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 48
48
"eslint" : " ^8.57.0 || ^9.0.0"
49
49
},
50
50
"dependencies" : {
51
+ "@typescript-eslint/typescript-estree" : " ^8.1.0" ,
51
52
"@typescript-eslint/utils" : " ^8.1.0" ,
52
53
"debug" : " ^4.3.4" ,
53
54
"doctrine" : " ^3.0.0" ,
Original file line number Diff line number Diff line change 1
1
import path from 'node:path'
2
2
3
+ import { withoutProjectParserOptions } from '@typescript-eslint/typescript-estree'
3
4
import type { TSESLint , TSESTree } from '@typescript-eslint/utils'
4
5
import debug from 'debug'
5
6
@@ -89,13 +90,9 @@ export function parse(
89
90
// "project" or "projects" in parserOptions. Removing these options means the parser will
90
91
// only parse one file in isolate mode, which is much, much faster.
91
92
// 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
95
- delete parserOptions . EXPERIMENTAL_useProjectService
96
- delete parserOptions . projectService
97
- delete parserOptions . project
98
- delete parserOptions . projects
93
+ parserOptions = withoutProjectParserOptions (
94
+ parserOptions ,
95
+ ) as TSESLint . ParserOptions
99
96
100
97
// require the parser relative to the main module (i.e., ESLint)
101
98
const parser =
Original file line number Diff line number Diff line change 2421
2421
semver "^7.3.7"
2422
2422
tsutils "^3.21.0"
2423
2423
2424
- " @typescript-eslint/typescript-estree@8.1.0 " :
2424
+ " @typescript-eslint/typescript-estree@8.1.0" , "@typescript-eslint/typescript-estree@^8.1.0" :
2425
2425
version "8.1.0"
2426
2426
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.1.0.tgz#c44e5667683c0bb5caa43192e27de6a994f4e4c4"
2427
2427
integrity sha512-NTHhmufocEkMiAord/g++gWKb0Fr34e9AExBRdqgWdVBaKoei2dIyYKD9Q0jBnvfbEA5zaf8plUFMUH6kQ0vGg==
You can’t perform that action at this time.
0 commit comments