eslint-config-heck 4.3.2 → 4.4.0
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.cjs +6 -0
- package/nodeWithBiome.cjs +7 -0
- package/package.json +6 -6
package/node.cjs
CHANGED
|
@@ -507,6 +507,7 @@ module.exports = [
|
|
|
507
507
|
allowExpressions: true,
|
|
508
508
|
},
|
|
509
509
|
],
|
|
510
|
+
"react/jsx-pascal-case": "error",
|
|
510
511
|
"react/jsx-props-no-spread-multi": "error",
|
|
511
512
|
"react/jsx-props-no-spreading": "off",
|
|
512
513
|
"react/jsx-sort-props": "off",
|
|
@@ -613,6 +614,8 @@ module.exports = [
|
|
|
613
614
|
ignore: ["^ex([A-Z0-9].*)?$"],
|
|
614
615
|
},
|
|
615
616
|
],
|
|
617
|
+
"unicorn/consistent-assert": "error",
|
|
618
|
+
"unicorn/consistent-date-clone": "error",
|
|
616
619
|
"unicorn/consistent-destructuring": "error",
|
|
617
620
|
"unicorn/consistent-empty-array-spread": "error",
|
|
618
621
|
"unicorn/consistent-existence-index-check": "error",
|
|
@@ -642,6 +645,7 @@ module.exports = [
|
|
|
642
645
|
"unicorn/import-style": "error",
|
|
643
646
|
"unicorn/new-for-builtins": "error",
|
|
644
647
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
648
|
+
"unicorn/no-accessor-recursion": "error",
|
|
645
649
|
"unicorn/no-anonymous-default-export": "error",
|
|
646
650
|
"unicorn/no-array-callback-reference": "off",
|
|
647
651
|
"unicorn/no-array-for-each": "off",
|
|
@@ -656,12 +660,14 @@ module.exports = [
|
|
|
656
660
|
"unicorn/no-for-loop": "error",
|
|
657
661
|
"unicorn/no-hex-escape": "error",
|
|
658
662
|
"unicorn/no-instanceof-array": "error",
|
|
663
|
+
"unicorn/no-instanceof-builtins": "error",
|
|
659
664
|
"unicorn/no-invalid-fetch-options": "error",
|
|
660
665
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
661
666
|
"unicorn/no-keyword-prefix": "off",
|
|
662
667
|
"unicorn/no-length-as-slice-end": "error",
|
|
663
668
|
"unicorn/no-lonely-if": "error",
|
|
664
669
|
"unicorn/no-magic-array-flat-depth": "error",
|
|
670
|
+
"unicorn/no-named-default": "error",
|
|
665
671
|
"unicorn/no-negated-condition": "error",
|
|
666
672
|
"unicorn/no-negation-in-equality-check": "error",
|
|
667
673
|
"unicorn/no-nested-ternary": "off",
|
package/nodeWithBiome.cjs
CHANGED
|
@@ -308,9 +308,11 @@ module.exports = [
|
|
|
308
308
|
"unicode-bom": "error",
|
|
309
309
|
|
|
310
310
|
// @stylistic
|
|
311
|
+
"@stylistic/jsx-pascal-case": "off",
|
|
311
312
|
"@stylistic/max-statements-per-line": "error",
|
|
312
313
|
"@stylistic/multiline-comment-style": ["error", "separate-lines"],
|
|
313
314
|
"@stylistic/no-floating-decimal": "error",
|
|
315
|
+
"@stylistic/no-mixed-operators": "off",
|
|
314
316
|
"@stylistic/padding-line-between-statements": [
|
|
315
317
|
"error",
|
|
316
318
|
// return
|
|
@@ -538,6 +540,8 @@ module.exports = [
|
|
|
538
540
|
ignore: ["^ex([A-Z0-9].*)?$"],
|
|
539
541
|
},
|
|
540
542
|
],
|
|
543
|
+
"unicorn/consistent-assert": "error",
|
|
544
|
+
"unicorn/consistent-date-clone": "error",
|
|
541
545
|
"unicorn/consistent-destructuring": "error",
|
|
542
546
|
"unicorn/consistent-empty-array-spread": "error",
|
|
543
547
|
"unicorn/consistent-existence-index-check": "error",
|
|
@@ -557,6 +561,7 @@ module.exports = [
|
|
|
557
561
|
"unicorn/import-style": "error",
|
|
558
562
|
"unicorn/new-for-builtins": "off",
|
|
559
563
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
564
|
+
"unicorn/no-accessor-recursion": "error",
|
|
560
565
|
"unicorn/no-anonymous-default-export": "error",
|
|
561
566
|
"unicorn/no-array-callback-reference": "off",
|
|
562
567
|
"unicorn/no-array-for-each": "off",
|
|
@@ -571,12 +576,14 @@ module.exports = [
|
|
|
571
576
|
"unicorn/no-for-loop": "error",
|
|
572
577
|
"unicorn/no-hex-escape": "error",
|
|
573
578
|
"unicorn/no-instanceof-array": "off",
|
|
579
|
+
"unicorn/no-instanceof-builtins": "error",
|
|
574
580
|
"unicorn/no-invalid-fetch-options": "error",
|
|
575
581
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
576
582
|
"unicorn/no-keyword-prefix": "off",
|
|
577
583
|
"unicorn/no-length-as-slice-end": "error",
|
|
578
584
|
"unicorn/no-lonely-if": "off",
|
|
579
585
|
"unicorn/no-magic-array-flat-depth": "error",
|
|
586
|
+
"unicorn/no-named-default": "error",
|
|
580
587
|
"unicorn/no-negated-condition": "off",
|
|
581
588
|
"unicorn/no-negation-in-equality-check": "error",
|
|
582
589
|
"unicorn/no-nested-ternary": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-heck",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"author": "atheck",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@stylistic/eslint-plugin": "
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "8.24.
|
|
31
|
-
"@typescript-eslint/parser": "8.24.
|
|
29
|
+
"@stylistic/eslint-plugin": "4.0.0",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "8.24.1",
|
|
31
|
+
"@typescript-eslint/parser": "8.24.1",
|
|
32
32
|
"eslint": "9.20.1",
|
|
33
33
|
"eslint-plugin-import": "2.31.0",
|
|
34
34
|
"eslint-plugin-jest": "28.11.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"eslint-plugin-react-hooks": "5.1.0",
|
|
37
37
|
"eslint-plugin-react-native": "5.0.0",
|
|
38
38
|
"eslint-plugin-testing-library": "7.1.1",
|
|
39
|
-
"eslint-plugin-unicorn": "
|
|
39
|
+
"eslint-plugin-unicorn": "57.0.0",
|
|
40
40
|
"typescript": "5.7.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"globals": "15.15.0",
|
|
49
49
|
"jest": "29.7.0",
|
|
50
50
|
"react": "18.3.1",
|
|
51
|
-
"semantic-release": "24.2.
|
|
51
|
+
"semantic-release": "24.2.3"
|
|
52
52
|
},
|
|
53
53
|
"repository": {
|
|
54
54
|
"type": "git",
|