-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
51 lines (44 loc) · 1.42 KB
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
root: true
env:
browser: true
es2020: true
parser: '@typescript-eslint/parser'
parserOptions:
tsconfigRootDir: .
project:
- ./tsconfig.eslint.json
- ./tsconfig.json
- ./packages/*/tsconfig.json
plugins:
- '@typescript-eslint'
- prettier
- react-hooks
- react-refresh
- import
rules:
prettier/prettier: error
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: error
react-refresh/only-export-components:
- error
- allowConstantExport: true
import/order: error
'@typescript-eslint/dot-notation': error
'@typescript-eslint/prefer-readonly': error
# '@typescript-eslint/prefer-readonly-parameter-types': error
'@typescript-eslint/array-type':
- error
- default: array-simple
'@typescript-eslint/no-inferrable-types': error
'@typescript-eslint/prefer-as-const': error
'@typescript-eslint/non-nullable-type-assertion-style': error
# '@typescript-eslint/no-unsafe-return': error
'@typescript-eslint/no-unsafe-enum-comparison': error
'@typescript-eslint/prefer-includes': error
'@typescript-eslint/switch-exhaustiveness-check': error
'@typescript-eslint/sort-type-constituents': error
# '@typescript-eslint/strict-boolean-expressions': error
'@typescript-eslint/prefer-ts-expect-error': error
'@typescript-eslint/prefer-string-starts-ends-with': error
# '@typescript-eslint/prefer-nullish-coalescing': error
# '@typescript-eslint/unbound-method': error