-
Notifications
You must be signed in to change notification settings - Fork 71
/
.eslintrc
138 lines (138 loc) · 3.23 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"globals": {
"expect": true,
"sinon": true,
"describe": true,
"chai": true,
"it": true
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"globalReturn": true,
"jsx": true
},
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"amd": true,
"browser": true,
"es6": true,
"mocha": true,
"node": true
},
"plugins": [
"nodeca",
"react"
],
"rules": {
"array-bracket-spacing": [2, "always"],
"brace-style": [
2,
"1tbs",
{ "allowSingleLine": false }
],
"camelcase": 2,
"comma-dangle": [2, "always-multiline"],
"complexity": [1, 5],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self"],
"consistent-return": 2,
"curly": [2, "all"],
"dot-notation": 0,
"eqeqeq": [2, "allow-null"],
"guard-for-in": 2,
"indent": [2, 2],
"jsx-quotes": 1,
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": 2,
"max-depth": [2, 3],
"max-len": [2, 120],
"max-params": [2, 5],
"max-statements": [2, 50],
"new-cap": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-empty": 2,
"no-extend-native": 2,
"no-floating-decimal": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new": 2,
"no-new-wrappers": 2,
"no-redeclare": 2,
"no-trailing-spaces": 2,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-undef": 2,
"no-underscore-dangle": 0,
"no-use-before-define": 2,
"nodeca/no-lodash-aliases": 2,
"object-curly-spacing": [2, "always"],
"quotes": [2, "single"],
"react/display-name": 1,
"react/jsx-boolean-value": 1,
"react/jsx-no-undef": 2,
"react/jsx-sort-props": 1,
"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/no-unknown-property": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/sort-prop-types": 1,
"react/wrap-multilines": 1,
"semi": [2, "never"],
"semi-spacing": 2,
"strict": 2,
"space-before-function-paren": [
2,
{
"anonymous": "always",
"named": "never"
}
],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": 2,
"valid-jsdoc": [
2,
{
"prefer": {
"virtual": "abstract",
"extends": "augments",
"constructor": "class",
"const": "constant",
"defaultvalue": "default",
"desc": "description",
"host": "external",
"fileoverview": "file",
"overview": "file",
"emits": "fires",
"func": "function",
"method": "function",
"var": "member",
"arg": "param",
"argument": "param",
"return": "returns",
"exception": "throws"
},
"requireReturn": false
}
],
"wrap-iife": [2, "outside"]
},
"settings": {
"ecmascript": 6,
"jsx": true
}
}