@bhsd/code-standard 2.4.1 → 2.4.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.
Files changed (2) hide show
  1. package/eslint.mjs +24 -0
  2. package/package.json +5 -5
package/eslint.mjs CHANGED
@@ -557,6 +557,7 @@ export const ignores = {
557
557
  ],
558
558
  'unicorn/consistent-assert': 2,
559
559
  'unicorn/consistent-date-clone': 2,
560
+ 'unicorn/consistent-empty-array-spread': 2,
560
561
  'unicorn/consistent-existence-index-check': 2,
561
562
  'unicorn/consistent-function-scoping': [
562
563
  2,
@@ -571,17 +572,21 @@ export const ignores = {
571
572
  'unicorn/new-for-builtins': 2,
572
573
  'unicorn/no-abusive-eslint-disable': 2,
573
574
  'unicorn/no-accessor-recursion': 2,
575
+ 'unicorn/no-array-callback-reference': 2,
574
576
  'unicorn/no-array-for-each': 2,
575
577
  'unicorn/no-array-method-this-argument': 2,
576
578
  'unicorn/no-array-reduce': 2,
577
579
  'unicorn/no-await-in-promise-methods': 2,
578
580
  'unicorn/no-immediate-mutation': 2,
579
581
  'unicorn/no-instanceof-builtins': 2,
582
+ 'unicorn/no-invalid-fetch-options': 2,
580
583
  'unicorn/no-invalid-remove-event-listener': 2,
581
584
  'unicorn/no-lonely-if': 2,
582
585
  'unicorn/no-named-default': 2,
583
586
  'unicorn/no-negated-condition': 2,
584
587
  'unicorn/no-negation-in-equality-check': 2,
588
+ 'unicorn/no-nested-ternary': 2,
589
+ 'unicorn/no-new-array': 2,
585
590
  'unicorn/no-object-as-default-parameter': 2,
586
591
  'unicorn/no-single-promise-in-promise-methods': 2,
587
592
  'unicorn/no-static-only-class': 2,
@@ -589,11 +594,13 @@ export const ignores = {
589
594
  'unicorn/no-typeof-undefined': 2,
590
595
  'unicorn/no-unnecessary-array-flat-depth': 2,
591
596
  'unicorn/no-unnecessary-array-splice-count': 2,
597
+ 'unicorn/no-unnecessary-await': 2,
592
598
  'unicorn/no-unreadable-iife': 2,
593
599
  'unicorn/no-unused-properties': 2,
594
600
  'unicorn/no-useless-collection-argument': 2,
595
601
  'unicorn/no-useless-fallback-in-spread': 2,
596
602
  'unicorn/no-useless-length-check': 2,
603
+ 'unicorn/no-useless-promise-resolve-reject': 2,
597
604
  'unicorn/no-useless-spread': 2,
598
605
  'unicorn/no-useless-switch-case': 2,
599
606
  'unicorn/number-literal-case': 2,
@@ -603,28 +610,42 @@ export const ignores = {
603
610
  'unicorn/prefer-array-flat-map': 2,
604
611
  'unicorn/prefer-array-index-of': 2,
605
612
  'unicorn/prefer-array-some': 2,
613
+ 'unicorn/prefer-at': 2,
606
614
  'unicorn/prefer-bigint-literals': 2,
607
615
  'unicorn/prefer-class-fields': 2,
608
616
  'unicorn/prefer-classlist-toggle': 2,
609
617
  'unicorn/prefer-code-point': 2,
610
618
  'unicorn/prefer-default-parameters': 2,
619
+ 'unicorn/prefer-export-from': [
620
+ 2,
621
+ {
622
+ ignoreUsedVariables: true,
623
+ },
624
+ ],
611
625
  'unicorn/prefer-global-this': 2,
626
+ 'unicorn/prefer-import-meta-properties': 2,
612
627
  'unicorn/prefer-includes': 2,
613
628
  'unicorn/prefer-keyboard-event-key': 2,
614
629
  'unicorn/prefer-logical-operator-over-ternary': 2,
615
630
  'unicorn/prefer-math-min-max': 2,
616
631
  'unicorn/prefer-native-coercion-functions': 2,
617
632
  'unicorn/prefer-negative-index': 2,
633
+ 'unicorn/prefer-object-from-entries': 2,
618
634
  'unicorn/prefer-optional-catch-binding': 2,
619
635
  'unicorn/prefer-prototype-methods': 2,
636
+ 'unicorn/prefer-reflect-apply': 2,
637
+ 'unicorn/prefer-regexp-test': 2,
620
638
  'unicorn/prefer-simple-condition-first': 2,
621
639
  'unicorn/prefer-single-call': 2,
622
640
  'unicorn/prefer-spread': 2,
623
641
  'unicorn/prefer-string-raw': 2,
642
+ 'unicorn/prefer-string-replace-all': 2,
624
643
  'unicorn/prefer-string-starts-ends-with': 2,
644
+ 'unicorn/prefer-structured-clone': 2,
625
645
  'unicorn/prefer-switch': 2,
626
646
  'unicorn/prefer-ternary': 2,
627
647
  'unicorn/require-module-attributes': 2,
648
+ 'unicorn/require-number-to-fixed-digits-argument': 2,
628
649
  'unicorn/switch-case-braces': [
629
650
  2,
630
651
  'avoid',
@@ -996,6 +1017,7 @@ export const ignores = {
996
1017
  '@stylistic/type-generic-spacing': 2,
997
1018
  '@stylistic/type-named-tuple-spacing': 2,
998
1019
  'jsdoc/check-types': 0,
1020
+ 'unicorn/no-array-callback-reference': 0,
999
1021
  },
1000
1022
  },
1001
1023
  ].map(obj => ({files, ...obj})),
@@ -1031,6 +1053,8 @@ export const ignores = {
1031
1053
  allowExperimental: true,
1032
1054
  },
1033
1055
  ],
1056
+ 'unicorn/no-array-reverse': 2,
1057
+ 'unicorn/no-array-sort': 2,
1034
1058
  },
1035
1059
  settings: {
1036
1060
  n: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/code-standard",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
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"
@@ -22,20 +22,20 @@
22
22
  "@eslint/js": "^10.0.1",
23
23
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
24
24
  "@stylistic/eslint-plugin": "^5.10.0",
25
- "@typescript-eslint/eslint-plugin": "^8.59.1",
25
+ "@typescript-eslint/eslint-plugin": "^8.59.2",
26
26
  "eslint-plugin-es-x": "^9.6.0",
27
27
  "eslint-plugin-jsdoc": "^62.9.0",
28
28
  "eslint-plugin-jsonc": "^3.1.2",
29
- "eslint-plugin-n": "^17.24.0",
29
+ "eslint-plugin-n": "^18.0.1",
30
30
  "eslint-plugin-promise": "^7.3.0",
31
31
  "eslint-plugin-regexp": "^3.1.0",
32
32
  "eslint-plugin-unicorn": "^64.0.0",
33
33
  "eslint-plugin-yml": "^3.3.2",
34
- "globals": "^17.5.0"
34
+ "globals": "^17.6.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^24.11.0",
38
- "@typescript-eslint/parser": "^8.59.1",
38
+ "@typescript-eslint/parser": "^8.59.2",
39
39
  "eslint": "^10.3.0",
40
40
  "stylelint-plugin-use-baseline": "^1.4.1"
41
41
  }