chore: update eslint to sort out imports (#1655)

* chore: update eslint to sort out imports

* turn warnings into errrors
This commit is contained in:
Andrew Tatomyr
2024-08-12 10:18:29 +03:00
committed by GitHub
parent 47aa04e97b
commit d0fc69c2bb
131 changed files with 916 additions and 355 deletions

View File

@@ -12,6 +12,7 @@ parserOptions:
sourceType: module
plugins:
- '@typescript-eslint'
- import
rules:
'@typescript-eslint/no-unused-vars':
- error
@@ -20,10 +21,20 @@ rules:
'@typescript-eslint/no-var-requires': off
'@typescript-eslint/no-empty-function': off
'@typescript-eslint/no-inferrable-types': off
'@typescript-eslint/ban-types': warn
'@typescript-eslint/ban-types': error
'@typescript-eslint/no-explicit-any': warn # TODO: make it error!
no-prototype-builtins: off
no-useless-escape: warn
no-useless-escape: error
'@typescript-eslint/consistent-type-imports':
- error
- prefer: type-imports
import/order:
- error
- groups:
- ['builtin', 'external', 'parent', 'sibling', 'index', 'object']
- [type]
'newlines-between': 'always'
import/no-duplicates: error
ignorePatterns:
- '**/__tests__/'
- 'packages/*/lib/'