-
Notifications
You must be signed in to change notification settings - Fork 72
/
.eslintrc.json
81 lines (81 loc) · 2.12 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
75
76
77
78
79
80
81
{
"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": [
2,
80,
2,
{
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"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", "prettier", "prettier/react"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"plugins": ["react"]
}