-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
73 lines (73 loc) · 2.2 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"plugins": [
"react"
],
"extends": "airbnb",
"rules": {
"no-plusplus": 0,
"no-continue": 0,
"no-void": 0,
"no-empty": 0,
"no-restricted-properties": 0,
"no-use-before-define": [
"error",
{
"functions": false
}
],
"object-curly-spacing": [2, "never"],
"comma-dangle": [2, "always-multiline"],
"indent": [2, 4],
"arrow-parens": 0,
"no-return-assign": 0,
"function-paren-newline": 0,
"class-methods-use-this": 0,
"no-multiple-empty-lines": [2, {"max": 1}],
"no-underscore-dangle": 0,
"no-restricted-syntax": 0,
"import/prefer-default-export": 0,
"prefer-destructuring": 0,
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"no-unneeded-ternary": [2, {"defaultAssignment": true}],
"react/display-name": 0,
"react/forbid-prop-types": [2, {"forbid": ["object"]}],
"react/destructuring-assignment": 0,
"react/jsx-filename-extension": 0,
"react/no-multi-comp": 0,
"jsx-a11y/anchor-is-valid": ["never"],
"react/jsx-tag-spacing": [2, {
"closingSlash": "never",
"beforeSelfClosing": "never",
"afterOpening": "never"
}],
"react/forbid-component-props": 0,
"react/jsx-no-bind": 0,
"react/require-optimization": 0,
"react/jsx-handler-names": 0,
"react/no-set-state": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-no-literals": 0,
"react/prefer-stateless-function": 0,
"react/sort-comp": [
2,
{
"order": [
"propTypes",
"static-methods",
"lifecycle",
"render",
"/^_render.+$/",
"/^_?on.+$/",
"/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/",
"everything-else"
]
}
]
}
}