Skip to content

Commit bc6cf56

Browse files
committed
feat: enable ts/no-unused-expressions
1 parent 716fed5 commit bc6cf56

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/configs/typescript.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,13 @@ export async function typescript(
146146
'ts/no-import-type-side-effects': 'error',
147147
'ts/no-invalid-void-type': 'off',
148148
'ts/no-non-null-assertion': 'off',
149-
'ts/no-redeclare': 'error',
149+
'ts/no-redeclare': ['error', { builtinGlobals: false }],
150150
'ts/no-require-imports': 'error',
151+
'ts/no-unused-expressions': ['error', {
152+
allowShortCircuit: true,
153+
allowTaggedTemplates: true,
154+
allowTernary: true,
155+
}],
151156
'ts/no-unused-vars': 'off',
152157
'ts/no-use-before-define': [
153158
'error',

0 commit comments

Comments
 (0)