eslint-config-heck 0.1.2 → 0.1.3
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/node.js +14 -4
- package/package.json +1 -1
package/node.js
CHANGED
|
@@ -468,8 +468,14 @@ const rules = {
|
|
|
468
468
|
"prefer-destructuring": [
|
|
469
469
|
"error",
|
|
470
470
|
{
|
|
471
|
-
|
|
472
|
-
|
|
471
|
+
VariableDeclarator: {
|
|
472
|
+
array: false,
|
|
473
|
+
object: true,
|
|
474
|
+
},
|
|
475
|
+
AssignmentExpression: {
|
|
476
|
+
array: false,
|
|
477
|
+
object: false,
|
|
478
|
+
},
|
|
473
479
|
},
|
|
474
480
|
],
|
|
475
481
|
"prefer-numeric-literals": "error",
|
|
@@ -551,7 +557,7 @@ const rules = {
|
|
|
551
557
|
"error",
|
|
552
558
|
{
|
|
553
559
|
groups: {
|
|
554
|
-
|
|
560
|
+
render: ["render", "/^render.+$/"],
|
|
555
561
|
},
|
|
556
562
|
},
|
|
557
563
|
],
|
|
@@ -893,7 +899,11 @@ const overrides = [
|
|
|
893
899
|
"@typescript-eslint/no-for-in-array": "error",
|
|
894
900
|
"@typescript-eslint/no-implicit-any-catch": "error",
|
|
895
901
|
"@typescript-eslint/no-inferrable-types": "error",
|
|
896
|
-
"@typescript-eslint/no-invalid-void-type":
|
|
902
|
+
"@typescript-eslint/no-invalid-void-type": [
|
|
903
|
+
"error", {
|
|
904
|
+
allowAsThisParameter: true,
|
|
905
|
+
},
|
|
906
|
+
],
|
|
897
907
|
"@typescript-eslint/no-meaningless-void-operator": "error",
|
|
898
908
|
"@typescript-eslint/no-misused-new": "error",
|
|
899
909
|
"@typescript-eslint/no-misused-promises": "error",
|