/
eslintrc.json
executable file
·38 lines (35 loc) · 1.08 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
{
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-array-index-key": "error",
"react/no-direct-mutation-state": "error",
"react/no-typos": "error",
"react/no-unused-prop-types": "error",
"react/no-unused-state": "error",
"react/prefer-es6-class": "error",
"react/react-in-jsx-scope": "error",
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-curly-spacing": [2, {"when": "never", "children": true, "allowMultiline": true}],
"react/jsx-closing-bracket-location": [2, "tag-aligned"],
"react/jsx-key": "error",
"react/jsx-no-duplicate-props": [2, { "ignoreCase": true }],
"react/jsx-tag-spacing": [2, {"closingSlash": "never", "beforeSelfClosing": "always", "afterOpening": "never", "beforeClosing": "never"}]
},
"plugins": [
"react"
]
}