Skip to content

Commit 3001e6b

Browse files
committed
refactor: remove the parser from the typeaware rules since ts config takes care of it
1 parent 7bb1978 commit 3001e6b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/configs/react.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { OptionsFiles, OptionsOverrides, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, TypedFlatConfigItem } from '../types'
22

3-
import process from 'node:process'
43
import { isPackageExists } from 'local-pkg'
54
import { GLOB_ASTRO_TS, GLOB_MARKDOWN, GLOB_SRC, GLOB_TS, GLOB_TSX } from '../globs'
65

@@ -31,7 +30,6 @@ export async function react(
3130
GLOB_ASTRO_TS,
3231
],
3332
overrides = {},
34-
parserOptions = {},
3533
tsconfigPath,
3634
} = options
3735

@@ -186,17 +184,6 @@ export async function react(
186184
? [{
187185
files: filesTypeAware,
188186
ignores: ignoresTypeAware,
189-
languageOptions: {
190-
parser: await interopDefault(import('@typescript-eslint/parser')),
191-
parserOptions: {
192-
projectService: {
193-
allowDefaultProject: ['./*.js'],
194-
defaultProject: tsconfigPath,
195-
},
196-
tsconfigRootDir: process.cwd(),
197-
...parserOptions as any,
198-
},
199-
},
200187
name: 'antfu/react/type-aware-rules',
201188
rules: {
202189
...typeAwareRules,

0 commit comments

Comments
 (0)