Skip to content

Commit dd1a8c1

Browse files
authored
fix: sync js rule options to ts, close antfu#609 (antfu#610)
1 parent 890f2da commit dd1a8c1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/configs/typescript.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,13 @@ export async function typescript(
147147
'ts/no-import-type-side-effects': 'error',
148148
'ts/no-invalid-void-type': 'off',
149149
'ts/no-non-null-assertion': 'off',
150-
'ts/no-redeclare': 'error',
150+
'ts/no-redeclare': ['error', { builtinGlobals: false }],
151151
'ts/no-require-imports': 'error',
152+
'ts/no-unused-expressions': ['error', {
153+
allowShortCircuit: true,
154+
allowTaggedTemplates: true,
155+
allowTernary: true,
156+
}],
152157
'ts/no-unused-vars': 'off',
153158
'ts/no-use-before-define': ['error', { classes: false, functions: false, variables: true }],
154159
'ts/no-useless-constructor': 'off',

0 commit comments

Comments
 (0)