Skip to content

Commit 95d1976

Browse files
committed
fix: only enable ts rules for ts files
1 parent efc11f6 commit 95d1976

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/configs/typescript.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import process from 'node:process'
2-
import { GLOB_SRC, GLOB_TS, GLOB_TSX } from '../constants/glob'
2+
import { GLOB_TS, GLOB_TSX } from '../constants/glob'
33
import { pluginAntfu } from '../plugins'
44
import { interopDefault, renameRules, toArray } from '../shared'
55
import type {
@@ -21,7 +21,8 @@ export async function typescript(
2121
const { componentExts = [], overrides = {}, parserOptions = {} } = options
2222

2323
const files = options.files ?? [
24-
GLOB_SRC,
24+
GLOB_TS,
25+
GLOB_TSX,
2526
...componentExts.map(ext => `**/*.${ext}`),
2627
]
2728

0 commit comments

Comments
 (0)