This repository has been archived by the owner on May 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 449
/
.eslintrc
127 lines (124 loc) · 2.8 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react"
],
"globals": {
"define": true,
"require": true,
"module": true
},
"rules": {
"strict": [0, "global"],
"global-strict": [0, "always"],
"no-extra-strict": 0,
"no-shadow": 1,
"no-unused-vars": [1, {
"vars": "local",
"args": "after-used"
}],
"no-undef": 1,
"no-unused-expressions": 1,
"no-use-before-define": 0,
"yoda": 0,
"eqeqeq": 1,
"no-new": 0,
"consistent-return": 0,
"dot-notation": [2, {
"allowKeywords": true
}],
"no-native-reassign": 1,
"no-return-assign": 1,
"no-constant-condition": 1,
"no-caller": 1,
"no-loop-func": 1,
"no-console": 1,
"no-catch-shadow": 2,
"no-new-require": 0,
"no-mixed-requires": [0, false],
"no-path-concat": 0,
"handle-callback-err": 0,
"no-empty": 0,
"indent": [2, 2, {
"SwitchCase": 1
}],
"camelcase": [1, {
"properties": "always"
}],
"quotes": [2, "single", "avoid-escape"],
"brace-style": [2, "1tbs", {
"allowSingleLine": true
}],
"comma-spacing": [2, {
"before": false,
"after": true
}],
"comma-style": [2, "last"],
"eol-last": 0,
"func-names": 0,
"new-cap": [2, {
"newIsCap": true
}],
"key-spacing": [1, {
"beforeColon": false,
"afterColon": true
}],
"no-multi-spaces": 1,
"no-multiple-empty-lines": 0,
"no-nested-ternary": 0,
"no-new-object": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 0,
"no-extra-parens": 1,
"no-underscore-dangle": 0,
"one-var": [1, "never"],
"padded-blocks": [0, "never"],
"semi": 2,
"semi-spacing": 1,
"keyword-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-infix-ops": 2,
"spaced-comment": [
2,
"always",
{
"exceptions": ["*!+-"]
}
],
/**
* React JSX
*/
"react/display-name": 0,
"react/jsx-boolean-value": [1, "always"],
"jsx-quotes": [2, "prefer-double"],
"react/jsx-no-undef": 1,
"react/jsx-sort-props": 0,
"react/jsx-sort-prop-types": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 0,
"react/no-did-update-set-state": 0,
"react/no-multi-comp": 0,
"react/no-unknown-property": 2,
"react/prop-types": 0,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 2,
"react/jsx-wrap-multilines": 1,
"react/sort-comp": [0, {
"order": [
"lifecycle",
"/^on.+$/",
"/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/",
"everything-else",
"/^render.+$/",
"render"
]
}]
}
}