-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
118 lines (118 loc) · 2.28 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"rules": {
"semi": "error",
"linebreak-style": 0,
"no-empty-function": "off",
"sort-imports": [
"off",
{
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": [
"none",
"all",
"multiple",
"single"
]
}
],
"sort-imports-es6-autofix/sort-imports-es6": [
2,
{
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": [
"none",
"all",
"single",
"multiple"
]
}
],
"sort-keys": [
"off"
],
"no-undef": "off",
"no-unused-vars": "off",
"no-magic-numbers": "off",
"class-methods-use-this": "off",
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"react/prop-types": 0,
"react/display-name": 0,
"react/jsx-no-bind": 2,
"react/jsx-no-duplicate-props": 2,
"space-before-blocks": 2,
"space-before-function-paren": 2,
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"spaced-comment": 2,
"rest-spread-spacing": 2,
"semi-spacing": 2,
"no-unneeded-ternary": 0,
"eqeqeq": 2,
"dot-location": 2,
"no-extra-bind": 2,
"keyword-spacing": 2,
"key-spacing": 0,
"indent": [
"error",
2
],
"react/jsx-indent": [
2,
2
],
"func-call-spacing": 2,
"array-bracket-spacing": 2,
"block-spacing": 2,
"brace-style": 2,
"arrow-body-style": 2,
"arrow-parens": 2,
"arrow-spacing": 2,
"react/self-closing-comp": 2,
"jsx-quotes": [
"error",
"prefer-single"
],
"object-curly-spacing": 2,
"quotes": [
"error",
"single"
],
"no-console": 0,
"padded-blocks": [
"error",
"never"
],
"react/no-did-mount-set-state": 2,
},
"globals": {
"it": true,
"describe": true,
"expect": true,
"test": true
},
"plugins": [
"react",
"sort-imports-es6-autofix"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
]
}