-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
115 lines (115 loc) · 2.77 KB
/
.eslintrc.json
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"project": [
"./tsconfig.json"
]
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function"
}
],
"no-console": 1,
"no-unused-vars": 0,
"no-empty": 1,
"react-hooks/rules-of-hooks": 2,
"react-hooks/exhaustive-deps": 1,
"quotes": [
"error",
"single"
],
"comma-dangle": [
"error",
"always-multiline"
],
"no-shadow": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "local",
"args": "none",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/no-shadow": 0,
"no-await-in-loop": 0,
"no-mixed-operators": 0,
"no-restricted-syntax": [
"off",
"ForOfStatement"
],
"react/jsx-props-no-spreading": 0,
"react/jsx-wrap-multilines": 0,
"import/prefer-default-export": 0,
"react/prop-types": 0,
"import/no-unresolved": 0,
"react/destructuring-assignment": 0,
"react/jsx-curly-brace-presence": 0,
"react/static-property-placement": 0,
"jsx-a11y/click-events-have-key-events": 0,
"react/require-default-props": 0,
"operator-linebreak": 0,
"jsx-a11y/no-static-element-interactions": 0,
"no-param-reassign": [
"error",
{
"props": false
}
],
"class-methods-use-this": 0,
"max-len": [
"warn",
{
"code": 120,
"ignoreStrings": true,
"ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(",
"ignoreUrls": true
}
],
"import/no-cycle": 0,
"no-bitwise": "off",
"max-classes-per-file": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"import/named": 0,
"@typescript-eslint/no-throw-literal": 0,
"react/jsx-pascal-case": 0,
"react/no-this-in-sfc": 0,
"react/no-find-dom-node": 0,
"curly": 1,
"import/no-extraneous-dependencies": 0,
"import/no-anonymous-default-export": 0,
"react/jsx-closing-tag-location": 0,
"no-return-assign": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-var-requires": 0,
"prefer-destructuring": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-non-null-asserted-optional-chain": 0,
"@typescript-eslint/ban-types": 0,
"no-promise-executor-return": 0,
"no-fallthrough": 1
}
}