11import process from 'node:process'
22import { GLOB_ASTRO_TS , GLOB_DTS , GLOB_MARKDOWN , GLOB_TS , GLOB_TSX } from '../constants/glob'
33import { pluginAntfu } from '../plugins'
4- import { interopDefault , renameRules , toArray } from '../shared'
4+ import { interopDefault , renameRules } from '../shared'
55import type {
66 OptionsComponentExts ,
77 OptionsFiles ,
@@ -32,9 +32,7 @@ export async function typescript(
3232 GLOB_ASTRO_TS ,
3333 ]
3434
35- const tsconfigPath = options ?. tsconfigPath
36- ? toArray ( options . tsconfigPath )
37- : undefined
35+ const tsconfigPath = options . tsconfigPath
3836 const isTypeAware = ! ! tsconfigPath
3937
4038 const typeAwareRules : TypedFlatConfigItem [ 'rules' ] = {
@@ -129,7 +127,7 @@ export async function typescript(
129127 'no-useless-constructor' : 'off' ,
130128 'ts/ban-ts-comment' : [
131129 'error' ,
132- { 'ts-ignore ' : 'allow-with-description' } ,
130+ { 'ts-expect-error ' : 'allow-with-description' } ,
133131 ] ,
134132 'ts/consistent-type-definitions' : [ 'error' , 'interface' ] ,
135133 'ts/consistent-type-imports' : [
@@ -155,7 +153,6 @@ export async function typescript(
155153 ] ,
156154 'ts/no-useless-constructor' : 'off' ,
157155 'ts/no-wrapper-object-types' : 'error' ,
158- 'ts/prefer-ts-expect-error' : 'error' ,
159156 'ts/triple-slash-reference' : 'off' ,
160157 'ts/unified-signatures' : 'off' ,
161158 ...overrides ,
0 commit comments