-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
88 lines (88 loc) · 2.09 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
82
83
84
85
86
87
88
{
"parser": "babel-eslint",
"extends": [
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:flowtype/recommended",
"standard"
],
"env": {
"browser": true,
"es6": true,
"node": true,
"jquery": true
},
"settings": {
"ecmascript": 6,
"jsx": true,
"react": {
"version": "16"
}
},
"plugins": ["babel", "import", "react", "jsx-a11y", "flowtype"],
"rules": {
"no-debugger": 0,
"indent": 0,
"babel/semi": [2, "never"],
"flowtype/semi": [2, "never"],
"valid-typeof": 0,
"no-undef": 0,
"comma-dangle": [
2,
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"object-shorthand": [2, "always"],
"object-curly-spacing": [2, "always", { "objectsInObjects": false }],
"standard/object-curly-even-spacing": 0,
"no-shadow": 0,
"no-duplicate-imports": 0,
"no-confusing-arrow": 0,
"react/jsx-closing-bracket-location": [1, "line-aligned"],
"react/prefer-es6-class": 2,
"react/prefer-stateless-function": 2,
"react/jsx-handler-names": 2,
"react/jsx-indent": 0,
"react/jsx-indent-props": 0,
"react/jsx-key": 2,
"react/jsx-max-props-per-line": [2, { "maximum": 1, "when": "multiline" }],
"react/jsx-no-bind": [
2,
{ "ignoreRefs": true, "allowArrowFunctions": true }
],
"react/jsx-no-target-blank": 2,
"react/jsx-pascal-case": 2,
"react/jsx-sort-props": [
2,
{
"callbacksLast": true,
"shorthandFirst": true,
"noSortAlphabetically": true
}
],
"react/jsx-tag-spacing": [
2,
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never"
}
],
"no-use-before-define": 0,
"react/prop-types": 0,
"flowtype/require-valid-file-annotation": [
2,
"always",
{
"annotationStyle": "block"
}
],
"jsx-a11y/no-autofocus": 0,
"quotes": 0
}
}