Skip to content

Commit

Permalink
fix: sync js rule options to ts, close #609 (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan authored Sep 15, 2024
1 parent f025c1e commit 207634c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,13 @@ export async function typescript(
'ts/no-import-type-side-effects': 'error',
'ts/no-invalid-void-type': 'off',
'ts/no-non-null-assertion': 'off',
'ts/no-redeclare': 'error',
'ts/no-redeclare': ['error', { builtinGlobals: false }],
'ts/no-require-imports': 'error',
'ts/no-unused-expressions': ['error', {
allowShortCircuit: true,
allowTaggedTemplates: true,
allowTernary: true,
}],
'ts/no-unused-vars': 'off',
'ts/no-use-before-define': ['error', { classes: false, functions: false, variables: true }],
'ts/no-useless-constructor': 'off',
Expand Down

0 comments on commit 207634c

Please sign in to comment.