-
Notifications
You must be signed in to change notification settings - Fork 37
/
.eslintrc
92 lines (88 loc) · 1.98 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
{
"plugins": [
"react"
],
"parser": "babel-eslint",
"env": {
"node": true,
"browser": true,
"es6": true
},
"ecmaFeatures": {
"jsx": true,
"modules": true,
"decorators": true
},
"globals": {
"G": true,
"beforeEach": true,
"describe": true,
"it": true,
"afterEach": true,
"context": true,
"expect": true,
"sinon": true
},
"rules": {
"strict": 1,
"no-underscore-dangle": 0,
"no-mixed-requires": 0,
"no-process-exit": 0,
"no-warning-comments": 0,
"curly": 0,
"no-multi-spaces": 0,
"no-alert": 0,
"no-debugger": 1,
"no-empty": 2,
"no-invalid-regexp": 1,
"no-unused-expressions": 1,
"no-native-reassign": 1,
"no-fallthrough": 1,
"handle-callback-err": 2,
"camelcase": 0,
"no-undef": 2,
"no-dupe-keys": 2,
"no-empty-character-class": 2,
"no-self-compare": 2,
"valid-typeof": 2,
"no-unused-vars": 2,
"no-shadow-restricted-names": 2,
"no-new-require": 2,
"no-mixed-spaces-and-tabs": 2,
"no-console": 1,
"new-cap": 0,
"no-spaced-func": 2,
"semi-spacing": 2,
"quotes": [1, "single", {"allowTemplateLiterals": true}],
"key-spacing": [2],
"indent": ["error", 2],
"object-curly-spacing": [2, "always"],
'space-before-function-paren': [
'error',
'never'
],
'keyword-spacing': [
2,
{
'before': true,
'after': true
}
],
'semi': ['error', 'never'],
'prefer-const': ['error', {
'destructuring': 'any',
'ignoreReadBeforeAssign': false
}],
"space-infix-ops": ["error", {"int32Hint": false}],
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/jsx-wrap-multilines": 2
}
}