-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
65 lines (65 loc) · 1.81 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
{
"extends": [
"metarhia",
"plugin:react/recommended"
],
"env": {
"browser": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"jsx-quotes": ["error", "prefer-double"],
"react/jsx-boolean-value": "error",
"react/jsx-closing-bracket-location": "error",
"react/jsx-closing-tag-location": "error",
"react/jsx-curly-spacing": [
"error",
{
"when": "never",
"children": true
}
],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-filename-extension": [
"error",
{
"extensions": [".js"]
}
],
"react/jsx-first-prop-new-line": ["error"],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-no-bind": "warning",
"react/jsx-curly-brace-presence": ["error", "never"],
"react/jsx-pascal-case": "error",
"react/jsx-tag-spacing": "error",
"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-access-state-in-setstate": "error",
"react/no-array-index-key": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-redundant-should-component-update": "error",
"react/no-typos": "error",
"react/no-unused-state": "error",
"react/no-will-update-set-state": "error",
"react/prefer-es6-class": ["error", "always"],
"react/self-closing-comp": "error",
"react/sort-comp": "error",
"react/void-dom-elements-no-children": "error"
}
}