Skip to content

Commit

Permalink
fix: remove rules that require type info
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed May 3, 2022
1 parent 1e7812e commit 8f7fecd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export default defineConfig({
{ onlyInlineLambdas: false },
],
'@typescript-eslint/promise-function-async': 'error',
'dot-notation': 'off',
'@typescript-eslint/dot-notation': 'error',
'no-throw-literal': 'off',
'@typescript-eslint/no-throw-literal': 'error',
},
},
],
Expand Down
5 changes: 5 additions & 0 deletions packages/eslint-plugin/src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export default defineConfig({
typedefs: false, // Only the TypeScript rule has this option.
}],
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
}],

// TS
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
Expand Down
2 changes: 0 additions & 2 deletions packages/eslint-plugin/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { TSESLint } from '@typescript-eslint/utils'

export const TSEquivalents = [
'comma-spacing',
'dot-notation',
'brace-style',
'func-call-spacing',
'indent',
Expand All @@ -12,7 +11,6 @@ export const TSEquivalents = [
'no-array-constructor',
'no-dupe-class-members',
'no-redeclare',
'no-throw-literal',
'no-unused-vars',
'no-unused-expressions',
'no-useless-constructor',
Expand Down

0 comments on commit 8f7fecd

Please sign in to comment.