We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ts/no-unused-expressions
1 parent 716fed5 commit bc6cf56Copy full SHA for bc6cf56
src/configs/typescript.ts
@@ -146,8 +146,13 @@ export async function typescript(
146
'ts/no-import-type-side-effects': 'error',
147
'ts/no-invalid-void-type': 'off',
148
'ts/no-non-null-assertion': 'off',
149
- 'ts/no-redeclare': 'error',
+ 'ts/no-redeclare': ['error', { builtinGlobals: false }],
150
'ts/no-require-imports': 'error',
151
+ 'ts/no-unused-expressions': ['error', {
152
+ allowShortCircuit: true,
153
+ allowTaggedTemplates: true,
154
+ allowTernary: true,
155
+ }],
156
'ts/no-unused-vars': 'off',
157
'ts/no-use-before-define': [
158
'error',
0 commit comments