-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
138 lines (138 loc) · 2.99 KB
/
.eslintrc
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"extends": [
"react-app",
"react-app/jest",
"eslint:recommended",
"plugin:react/recommended"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"sourceType": "module"
},
"settings": {
"react": {
"version": "16.8.6"
}
},
"plugins": ["react"],
"rules": {
"array-bracket-newline": [
"error",
{
"multiline": true
}
],
"array-bracket-spacing": ["error", "never"],
"camelcase": [
"error",
{
"properties": "always"
}
],
"comma-dangle": ["error", "never"],
"complexity": ["error", 8],
"eqeqeq": "error",
"no-extra-bind": "error",
"no-extra-parens": [
"error",
"all",
{
"ignoreJSX": "all"
}
],
"jsx-quotes": ["error", "prefer-single"],
"prefer-const": "error",
"quote-props": ["error", "as-needed"],
"no-use-before-define": [
"error",
{
"functions": true,
"classes": true,
"variables": true
}
],
"quotes": ["error", "single"],
"react/display-name": 0,
"react/forbid-component-props": [
"error",
{
"forbid": ["id"]
}
],
"react/jsx-boolean-value": "error",
"react/jsx-curly-brace-presence": [
"error",
{
"props": "never",
"children": "ignore"
}
],
"react/jsx-max-props-per-line": [
"error",
{
"when": "multiline"
}
],
"react/jsx-no-bind": "error",
"react/jsx-no-literals": "error",
"react/jsx-one-expression-per-line": [
"error",
{
"allow": "single-child"
}
],
"react/jsx-fragments": ["error", "syntax"],
"react/jsx-pascal-case": "error",
"react/jsx-props-no-multi-spaces": "error",
"react/jsx-sort-default-props": "error",
"react/jsx-sort-props": "error",
"react/jsx-tag-spacing": [
"error",
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}
],
"react/jsx-wrap-multilines": [
"error",
{
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line",
"condition": "parens-new-line",
"logical": "parens-new-line",
"prop": "parens-new-line"
}
],
"react/no-danger": "error",
"react/no-direct-mutation-state": "error",
"react/no-unescaped-entities": "error",
"react/no-unsafe": "warn",
"react/no-unused-prop-types": "error",
"react/no-unused-state": "error",
"react/prefer-stateless-function": "error",
"semi": ["error", "always"],
"react/prop-types": 0
},
"overrides": [
{
"files": ["**/*.test.js", "**/*.test.jsx"],
"env": {
"jest": true
}
}
]
}