-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
60 lines (60 loc) · 1.29 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
52
53
54
55
56
57
58
59
60
env:
browser: true
es2021: true
extends:
- airbnb-typescript
- airbnb/hooks
- plugin:@typescript-eslint/recommended
parser: "@typescript-eslint/parser"
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: 12
sourceType: module
files:
- "*.ts"
- "*.tsx"
project: tsconfig.json
plugins:
- react
- "@typescript-eslint"
rules:
comma-dangle:
- error
- only-multiline
import/no-cycle: off
"@typescript-eslint/explicit-function-return-type": "off"
"@typescript-eslint/no-unused-vars": warn
linebreak-style: "off"
import/no-unresolved: "off"
import/extensions: "off"
react/jsx-filename-extension:
- "off"
- extensions:
- ".js"
- ".jsx"
react/destructuring-assignment: "off"
jsx-a11y/no-static-element-interactions: "off"
prefer-template: "off"
no-plusplus: "off"
eol-last: "off"
react/prop-types: "off"
arrow-parens:
- Error
- as-needed
max-len:
- error
- code: 200
no-empty-function: warn
no-empty: warn
"@typescript-eslint/no-empty-function": warn
prefer-destructuring: "off"
jsx-a11y/click-events-have-key-events: off
react-hooks/rules-of-hooks: off
react/require-default-props: off
react/jsx-props-no-spreading: off
no-console:
- "error"
- allow:
- "warn"
- "error"