Skip to content

Commit e0757c4

Browse files
committed
feat: use ts parser even for JS, for better language compatibility
1 parent 4da0b64 commit e0757c4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/configs/typescript.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import process from 'node:process'
22
import type { FlatESLintConfigItem } from 'eslint-define-config'
3-
import { GLOB_TS, GLOB_TSX } from '../globs'
3+
import { GLOB_SRC } from '../globs'
44
import { parserTs, pluginAntfu, pluginImport, pluginTs } from '../plugins'
55
import { OFF } from '../flags'
66
import type { OptionsComponentExts, OptionsOverrides, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes } from '../types'
@@ -49,8 +49,7 @@ export function typescript(
4949
},
5050
{
5151
files: [
52-
GLOB_TS,
53-
GLOB_TSX,
52+
GLOB_SRC,
5453
...componentExts.map(ext => `**/*.${ext}`),
5554
],
5655
languageOptions: {

0 commit comments

Comments
 (0)