-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.json
118 lines (118 loc) · 3.13 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
116
117
118
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"no-useless-escape": "off",
"linebreak-style": 0,
"no-debugger":"off",
"jsx-quotes": [
"error",
"prefer-double"
],
"max-lines": [
"warn",
{
"max": 1250,
"skipBlankLines": true,
"skipComments": true
}
],
"max-len": [
"warn",
{
"code": 1120,
"tabWidth": 4,
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreUrls": true
}
],
"no-param-reassign": 0,
"no-multiple-empty-lines": [
"error",
{
"max": 2,
"maxEOF": 0
}
],
"no-use-before-define": [
"error",
{
"functions": false
}
],
"no-unused-vars": "warn",
"react/function-component-definition": [
"error",
{
"namedComponents": "function-declaration"
}
],
"react/jsx-key": "error",
"react/require-default-props": "off",
"no-underscore-dangle": "off",
"no-plusplus": "off",
"react/forbid-prop-types": "off",
"react/prop-types": "off",
"react/jsx-uses-react": "off",
"react/no-danger": "off",
"camelcase": "off",
"consistent-return": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [
".js",
".jsx"
]
}
],
"react/jsx-pascal-case": "warn",
"react/jsx-one-expression-per-line": "warn",
"react/jsx-no-useless-fragment": "warn",
"react/jsx-no-duplicate-props": "error",
"react/jsx-wrap-multilines": "warn",
"react/no-array-index-key": "off",
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"import/newline-after-import": [
"error",
{
"count": 2
}
],
"import/no-unresolved": "error",
"import/no-cycle": "off",
"import/no-unused-modules": "off",
"import/no-commonjs": "error",
"import/no-nodejs-modules": "warn",
"import/first": "warn",
"import/exports-last": "error",
"import/no-duplicates": "warn",
"import/no-namespace": "off",
"import/order": "warn",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/no-anonymous-default-export": "error",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"react-hooks/exhaustive-deps": "off",
"react/no-unescaped-entities": "off"
}
}