@qlik/eslint-config 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configs/airbnb-base-mod.js +30 -2
- package/package.json +1 -1
|
@@ -5,14 +5,42 @@ module.exports = {
|
|
|
5
5
|
"no-underscore-dangle": "off",
|
|
6
6
|
"class-methods-use-this": "off",
|
|
7
7
|
"no-plusplus": "off",
|
|
8
|
-
"prefer-destructuring": [
|
|
8
|
+
"prefer-destructuring": [
|
|
9
|
+
"error",
|
|
10
|
+
{
|
|
11
|
+
VariableDeclarator: {
|
|
12
|
+
array: false,
|
|
13
|
+
object: true,
|
|
14
|
+
},
|
|
15
|
+
AssignmentExpression: {
|
|
16
|
+
array: false,
|
|
17
|
+
object: false,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
enforceForRenamedProperties: false,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
9
24
|
"guard-for-in": "off",
|
|
10
25
|
// allow prev to be re-assigned in reducers
|
|
11
26
|
"no-param-reassign": [
|
|
12
27
|
"error",
|
|
13
28
|
{
|
|
14
29
|
props: true,
|
|
15
|
-
ignorePropertyModificationsFor: [
|
|
30
|
+
ignorePropertyModificationsFor: [
|
|
31
|
+
"prev", // for reduce accumulators
|
|
32
|
+
"acc", // for reduce accumulators
|
|
33
|
+
"accumulator", // for reduce accumulators
|
|
34
|
+
"e", // for e.returnvalue
|
|
35
|
+
"ctx", // for Koa routing
|
|
36
|
+
"context", // for Koa routing
|
|
37
|
+
"req", // for Express requests
|
|
38
|
+
"request", // for Express requests
|
|
39
|
+
"res", // for Express responses
|
|
40
|
+
"response", // for Express responses
|
|
41
|
+
"$scope", // for Angular 1 scopes
|
|
42
|
+
"staticContext", // for ReactRouter context
|
|
43
|
+
],
|
|
16
44
|
},
|
|
17
45
|
],
|
|
18
46
|
|