Skip to content

Commit

Permalink
fix: disable few rules
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 28, 2023
1 parent 6a4cfec commit 4da0b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/configs/imports.ts
Expand Up @@ -17,7 +17,6 @@ export function imports(options: OptionsStylistic = {}): FlatESLintConfigItem[]
'antfu/import-dedupe': 'error',
'antfu/no-import-node-modules-by-path': 'error',

'import/export': 'error',
'import/first': 'error',
'import/no-duplicates': 'error',
'import/no-mutable-exports': 'error',
Expand Down
3 changes: 3 additions & 0 deletions src/configs/typescript.ts
Expand Up @@ -99,6 +99,7 @@ export function typescript(
'ts/no-dynamic-delete': OFF,
'ts/no-explicit-any': OFF,
'ts/no-extra-parens': ['error', 'functions'],
'ts/no-extraneous-class': OFF,
'ts/no-invalid-this': 'error',
'ts/no-invalid-void-type': OFF,
'ts/no-loss-of-precision': 'error',
Expand All @@ -107,8 +108,10 @@ export function typescript(
'ts/no-require-imports': 'error',
'ts/no-unused-vars': OFF,
'ts/no-use-before-define': ['error', { classes: false, functions: false, variables: true }],
'ts/no-useless-constructor': OFF,
'ts/prefer-ts-expect-error': 'error',
'ts/triple-slash-reference': OFF,
'ts/unified-signatures': OFF,

...tsconfigPath ? typeAwareRules : {},
...overrides,
Expand Down

0 comments on commit 4da0b64

Please sign in to comment.