-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.json
executable file
·74 lines (74 loc) · 2.35 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
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
{
"rules": {
"strict": 0,
"indent": [2, 2, { "VariableDeclarator": 2, "SwitchCase": 1 }],
"linebreak-style": [2, "unix"],
"no-multi-spaces": [2, { "exceptions": { "VariableDeclarator": true } }],
"no-console": 0,
"func-names": 0,
"vars-on-top": 0,
"one-var": 0,
"one-var-declaration-per-line": [2, "initializations"],
"space-before-function-paren": [2, "never"],
"no-use-before-define": [2, "nofunc"],
"comma-dangle": [2, "never"],
"padded-blocks": 0,
"max-len": [1, 100, 2, { "ignoreComments": true, "ignoreUrls": true }],
"quote-props": [1, "consistent-as-needed"],
"radix": 0,
"no-unused-vars": [1, { "vars": "local", "args": "after-used" }],
"no-param-reassign": 0,
"consistent-return": 0,
"no-confusing-arrow": 0,
"no-mixed-operators": [2, { "allowSamePrecedence": true }],
"class-methods-use-this": 0,
"no-plusplus": 0,
"import/no-extraneous-dependencies": 0,
"react/prefer-es6-class": 0,
"react/prop-types": 0,
"react/jsx-no-bind": 0,
"jsx-a11y/label-has-for": 0,
"react/sort-comp": [2, {
"order": [
"lifecycle",
"everything-else",
"render"
],
"groups": {
"lifecycle": [
"displayName",
"propTypes",
"contextTypes",
"childContextTypes",
"mixins",
"statics",
"defaultProps",
"constructor",
"getDefaultProps",
"getInitialState",
"getChildContext",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount"
]
}
}]
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"react"
]
}