-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
79 lines (79 loc) · 1.96 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
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"es6": true,
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"jsx": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"spread": true,
"templateStrings": true
},
"globals": {
"__DEV__": true,
"describe": true,
"it": true,
"beforeEach": true,
"afterEach": true,
"expect": true,
"browser": true,
"by": true,
"element": true,
"jasmine": true
},
"plugins": [
"react"
],
"rules": {
"import/first": "off",
"import/no-extraneous-dependencies": "off",
"no-console": "off",
"import/extensions": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off",
"import/no-unresolved": "off",
"no-unneeded-ternary" : "off",
"object-curly-spacing": ["error", "always", {
"objectsInObjects": false,
"arraysInObjects": false
}],
"comma-dangle": ["error", "never"],
"max-len": ["error", 100, 4, {"ignoreUrls": true}],
"space-before-function-paren": ["error", "never"],
"no-multiple-empty-lines": ["error", {"max": 1}],
"no-use-before-define": 0,
"global-require": 0,
"no-else-return": "error",
"no-param-reassign": 0,
"prefer-const": 0,
"func-names": 0,
"arrow-body-style": 0,
"react/jsx-no-bind": [2, {
"ignoreRefs": false,
"allowArrowFunctions": true,
"allowBind": true
}],
"guard-for-in": 0,
"react/jsx-key": 2,
"react/jsx-no-undef": 0,
"react/prefer-stateless-function": 0,
"react/jsx-closing-bracket-location": 0,
"no-undef": "error",
"one-var": 0,
"no-extra-semi": "error",
"semi": "error",
"prefer-arrow-callback": "error",
"new-cap": "off"
}
}