-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
77 lines (77 loc) · 2.24 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
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"ecmaVersion": 2017,
"sourceType": "module"
},
"settings": {
"react": {
"pragma": "React",
"version": "16.3"
}
},
"plugins": ["react"],
"rules": {
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "ignore",
"exports": "ignore",
"functions": "ignore"
}
],
"linebreak-style": ["error", "unix"],
"no-console": "warn",
"no-unexpected-multiline": "error",
"no-unused-vars": [2, { "args": "all", "argsIgnorePattern": "^_" }],
"quotes": ["error", "double"],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": "error",
"react/jsx-closing-bracket-location": [2, "line-aligned"],
"react/jsx-indent-props": [2, 4],
"react/jsx-no-duplicate-props": [0, { "ignoreCase": false }],
"react/sort-prop-types": [
0,
{
"ignoreCase": false,
"callbacksLast": true,
"requiredFirst": true
}
],
"react/no-deprecated": 1,
"react/no-direct-mutation-state": 0,
"react/react-in-jsx-scope": 2,
"react/jsx-tag-spacing": [2, { "beforeSelfClosing": "always" }],
"react/sort-comp": [
2,
{
"order": [
"static-methods",
"lifecycle",
"/^on.+$/",
"/^(get|set)(?!(InitialState$|DefaultProps$)).+$/",
"everything-else",
"/^render.+$/",
"render"
]
}
],
"semi": ["error", "never"],
"space-before-function-paren": [
"error",
{ "anonymous": "always", "named": "never", "asyncArrow": "always" }
],
"strict": 0
}
}