Skip to content

Commit

Permalink
feat: use ts parser even for JS, for better language compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 28, 2023
1 parent 4da0b64 commit e0757c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/configs/typescript.ts
@@ -1,6 +1,6 @@
import process from 'node:process'
import type { FlatESLintConfigItem } from 'eslint-define-config'
import { GLOB_TS, GLOB_TSX } from '../globs'
import { GLOB_SRC } from '../globs'
import { parserTs, pluginAntfu, pluginImport, pluginTs } from '../plugins'
import { OFF } from '../flags'
import type { OptionsComponentExts, OptionsOverrides, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes } from '../types'
Expand Down Expand Up @@ -49,8 +49,7 @@ export function typescript(
},
{
files: [
GLOB_TS,
GLOB_TSX,
GLOB_SRC,
...componentExts.map(ext => `**/*.${ext}`),
],
languageOptions: {
Expand Down

0 comments on commit e0757c4

Please sign in to comment.