-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
85 lines (84 loc) · 2.62 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
{
"extends": ["eslint:all", "plugin:react/all"],
"rules": {
"padded-blocks": 0,
"arrow-body-style": 0, // Because of multiline return
"newline-before-return": 0,
"object-property-newline": 0,
"no-ternary": 0,
"prefer-template": 0,
"sort-keys": 0,
"object-curly-newline": 0,
"sort-imports": 0,
"no-return-assign": 0, // Because of JSX refs
"no-inline-comments": 0,
"line-comment-position": 0,
"max-statements": [1, 20],
"quotes": [2, "single", "avoid-escape"],
"indent": [2, 2, {"SwitchCase": 1, "MemberExpression": "off"}],
"arrow-parens": [2, "as-needed"],
"max-params": [2, 4],
"one-var": [2, "never"],
"space-before-function-paren": [2, {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
"func-style": [2, "declaration"],
"quote-props": [2, "as-needed"],
"object-curly-spacing": [2, "always"],
"no-extra-parens": [2, "functions"],
"no-magic-numbers": [2, {"ignore": [-1, 0, 1, 2], "ignoreArrayIndexes": true}],
"dot-location": [2, "property"],
"max-len": [2, {"code": 130}],
"multiline-ternary": [2, "never"],
"no-confusing-arrow": [2, {"allowParens": true}],
"newline-per-chained-call": [2, {"ignoreChainWithDepth": 4}],
"global-require": 0,
"id-length": [2, {"exceptions": ["_"]}],
"capitalized-comments": 0,
"strict": 0,
"array-element-newline": [2, {"minItems": 3}],
"function-paren-newline": 0,
"prefer-destructuring": [2, {"AssignmentExpression": {"object": false}}],
"linebreak-style": 0,
// React
"react/no-set-state": 0,
"react/prefer-stateless-function": 0,
"react/require-optimization": 0,
"react/prop-types": [2, {"ignore": ["dispatch", "history", "children", "params", "match"]}],
"react/no-find-dom-node": 0,
"react/jsx-filename-extension": 0,
"react/jsx-sort-props": 0,
"react/jsx-handler-names": 0,
"react/jsx-no-literals": 0,
"react/jsx-indent-props": [2, 2],
"react/jsx-indent": [2, 2],
"react/jsx-max-props-per-line": [2, {"maximum": 5}],
"react/jsx-no-bind": [2, {"ignoreRefs": true, "allowArrowFunctions": true}],
"react/destructuring-assignment": 0,
"react/jsx-one-expression-per-line": 0
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"React": false,
"PropTypes": false,
"_": false,
"describe": false,
"it": false,
"before": false,
"after": false,
"beforeEach": false,
"afterEach": false
},
"plugins": [
"react"
]
}