@bhsd/code-standard 2.6.2 → 2.7.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/eslint.mjs +20 -2
- package/package.json +5 -5
package/eslint.mjs
CHANGED
|
@@ -583,14 +583,21 @@ export const ignores = {
|
|
|
583
583
|
'unicorn/no-abusive-eslint-disable': 2,
|
|
584
584
|
'unicorn/no-accessor-recursion': 2,
|
|
585
585
|
'unicorn/no-array-callback-reference': 2,
|
|
586
|
+
'unicorn/no-array-fill-with-reference-type': 2,
|
|
586
587
|
'unicorn/no-array-for-each': 2,
|
|
588
|
+
'unicorn/no-array-from-fill': 2,
|
|
587
589
|
'unicorn/no-array-method-this-argument': 2,
|
|
588
590
|
'unicorn/no-array-reduce': 2,
|
|
589
591
|
'unicorn/no-await-in-promise-methods': 2,
|
|
592
|
+
'unicorn/no-confusing-array-splice': 2,
|
|
593
|
+
'unicorn/no-duplicate-set-values': 2,
|
|
594
|
+
'unicorn/no-exports-in-scripts': 2,
|
|
590
595
|
'unicorn/no-immediate-mutation': 2,
|
|
596
|
+
'unicorn/no-incorrect-query-selector': 2,
|
|
591
597
|
'unicorn/no-instanceof-builtins': 2,
|
|
592
598
|
'unicorn/no-invalid-fetch-options': 2,
|
|
593
599
|
'unicorn/no-invalid-remove-event-listener': 2,
|
|
600
|
+
'unicorn/no-late-current-target-access': 2,
|
|
594
601
|
'unicorn/no-lonely-if': 2,
|
|
595
602
|
'unicorn/no-named-default': 2,
|
|
596
603
|
'unicorn/no-negated-condition': 2,
|
|
@@ -606,6 +613,7 @@ export const ignores = {
|
|
|
606
613
|
'unicorn/no-unnecessary-array-splice-count': 2,
|
|
607
614
|
'unicorn/no-unnecessary-await': 2,
|
|
608
615
|
'unicorn/no-unreadable-iife': 2,
|
|
616
|
+
'unicorn/no-unused-array-method-return': 2,
|
|
609
617
|
'unicorn/no-unused-properties': 2,
|
|
610
618
|
'unicorn/no-useless-collection-argument': 2,
|
|
611
619
|
'unicorn/no-useless-fallback-in-spread': 2,
|
|
@@ -619,6 +627,7 @@ export const ignores = {
|
|
|
619
627
|
'unicorn/prefer-array-flat': 2,
|
|
620
628
|
'unicorn/prefer-array-flat-map': 2,
|
|
621
629
|
'unicorn/prefer-array-index-of': 2,
|
|
630
|
+
'unicorn/prefer-array-last-methods': 2,
|
|
622
631
|
'unicorn/prefer-array-some': 2,
|
|
623
632
|
'unicorn/prefer-at': 2,
|
|
624
633
|
'unicorn/prefer-bigint-literals': 2,
|
|
@@ -629,14 +638,16 @@ export const ignores = {
|
|
|
629
638
|
'unicorn/prefer-export-from': [
|
|
630
639
|
2,
|
|
631
640
|
{
|
|
632
|
-
|
|
641
|
+
checkUsedVariables: false,
|
|
633
642
|
},
|
|
634
643
|
],
|
|
635
644
|
'unicorn/prefer-global-this': 2,
|
|
636
645
|
'unicorn/prefer-import-meta-properties': 2,
|
|
637
646
|
'unicorn/prefer-includes': 2,
|
|
647
|
+
'unicorn/prefer-includes-over-repeated-comparisons': 2,
|
|
638
648
|
'unicorn/prefer-keyboard-event-key': 2,
|
|
639
649
|
'unicorn/prefer-logical-operator-over-ternary': 2,
|
|
650
|
+
'unicorn/prefer-math-abs': 2,
|
|
640
651
|
'unicorn/prefer-math-min-max': 2,
|
|
641
652
|
'unicorn/prefer-native-coercion-functions': 2,
|
|
642
653
|
'unicorn/prefer-negative-index': 2,
|
|
@@ -647,15 +658,20 @@ export const ignores = {
|
|
|
647
658
|
'unicorn/prefer-regexp-test': 2,
|
|
648
659
|
'unicorn/prefer-simple-condition-first': 2,
|
|
649
660
|
'unicorn/prefer-single-call': 2,
|
|
661
|
+
'unicorn/prefer-split-limit': 2,
|
|
650
662
|
'unicorn/prefer-spread': 2,
|
|
663
|
+
'unicorn/prefer-string-pad-start-end': 2,
|
|
651
664
|
'unicorn/prefer-string-raw': 2,
|
|
665
|
+
'unicorn/prefer-string-repeat': 2,
|
|
652
666
|
'unicorn/prefer-string-replace-all': 2,
|
|
653
667
|
'unicorn/prefer-string-starts-ends-with': 2,
|
|
654
668
|
'unicorn/prefer-structured-clone': 2,
|
|
655
669
|
'unicorn/prefer-switch': 2,
|
|
656
670
|
'unicorn/prefer-ternary': 2,
|
|
671
|
+
'unicorn/require-css-escape': 2,
|
|
657
672
|
'unicorn/require-module-attributes': 2,
|
|
658
673
|
'unicorn/require-number-to-fixed-digits-argument': 2,
|
|
674
|
+
'unicorn/require-passive-events': 2,
|
|
659
675
|
'unicorn/switch-case-braces': [
|
|
660
676
|
2,
|
|
661
677
|
'avoid',
|
|
@@ -1077,6 +1093,7 @@ export const ignores = {
|
|
|
1077
1093
|
},
|
|
1078
1094
|
],
|
|
1079
1095
|
browser = getConfig({
|
|
1096
|
+
'es-x/no-array-prototype-findlast-findlastindex': 2,
|
|
1080
1097
|
'es-x/no-array-prototype-toreversed': 2,
|
|
1081
1098
|
'es-x/no-array-prototype-tosorted': 2,
|
|
1082
1099
|
'es-x/no-array-prototype-tospliced': 2,
|
|
@@ -1105,6 +1122,7 @@ export const ignores = {
|
|
|
1105
1122
|
'es-x/no-set-prototype-union': 2,
|
|
1106
1123
|
'es-x/no-string-prototype-iswellformed': 2,
|
|
1107
1124
|
'es-x/no-string-prototype-towellformed': 2,
|
|
1125
|
+
'unicorn/prefer-array-last-methods': 0,
|
|
1108
1126
|
'unicorn/prefer-structured-clone': 0,
|
|
1109
1127
|
}),
|
|
1110
1128
|
browserES8 = getConfig({
|
|
@@ -1122,6 +1140,7 @@ export const ignores = {
|
|
|
1122
1140
|
'es-x/no-optional-chaining': 0,
|
|
1123
1141
|
'es-x/no-optional-catch-binding': 0,
|
|
1124
1142
|
'es-x/no-rest-spread-properties': 0,
|
|
1143
|
+
'unicorn/prefer-array-last-methods': 0,
|
|
1125
1144
|
'unicorn/prefer-at': 0,
|
|
1126
1145
|
'unicorn/prefer-bigint-literals': 0,
|
|
1127
1146
|
'unicorn/prefer-global-this': 0,
|
|
@@ -1131,7 +1150,6 @@ export const ignores = {
|
|
|
1131
1150
|
}),
|
|
1132
1151
|
dist = getConfig({
|
|
1133
1152
|
...esX.configs['flat/restrict-to-es2022'].rules,
|
|
1134
|
-
'es-x/no-array-prototype-findlast-findlastindex': 0,
|
|
1135
1153
|
'es-x/no-iterator-prototype-flatmap': 0,
|
|
1136
1154
|
}),
|
|
1137
1155
|
distES8 = getConfig({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/code-standard",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"homepage": "https://github.com/bhsd-harry/code-standard#readme",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/bhsd-harry/code-standard/issues"
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
41
41
|
"@stylistic/stylelint-plugin": "^5.2.0",
|
|
42
42
|
"@types/node": "^25.9.0",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.60.1",
|
|
44
|
+
"@typescript-eslint/parser": "^8.60.1",
|
|
45
45
|
"eslint-plugin-es-x": "^9.6.0",
|
|
46
46
|
"eslint-plugin-jsdoc": "^62.9.0",
|
|
47
47
|
"eslint-plugin-jsonc": "^3.1.2",
|
|
48
|
-
"eslint-plugin-n": "^18.0
|
|
48
|
+
"eslint-plugin-n": "^18.1.0",
|
|
49
49
|
"eslint-plugin-promise": "^7.3.0",
|
|
50
50
|
"eslint-plugin-regexp": "^3.1.0",
|
|
51
|
-
"eslint-plugin-unicorn": "^
|
|
51
|
+
"eslint-plugin-unicorn": "^65.0.1",
|
|
52
52
|
"eslint-plugin-yml": "^3.3.2",
|
|
53
53
|
"globals": "^17.6.0",
|
|
54
54
|
"stylelint-plugin-use-baseline": "^1.4.2",
|