@bhsd/code-standard 2.0.1 → 2.1.1

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 CHANGED
@@ -355,12 +355,7 @@ export const ignores = {
355
355
  minAlternatives: 2,
356
356
  },
357
357
  ],
358
- 'regexp/prefer-lookaround': [
359
- 2,
360
- {
361
- lookbehind: false,
362
- },
363
- ],
358
+ 'regexp/prefer-lookaround': 2,
364
359
  'regexp/unicode-property': 2,
365
360
  },
366
361
  },
@@ -732,7 +727,7 @@ export const ignores = {
732
727
  },
733
728
  },
734
729
  json = [
735
- ...jsonc.configs['flat/recommended-with-json'],
730
+ ...jsonc.configs['recommended-with-json'],
736
731
  {
737
732
  files: ['**/*.json'],
738
733
  rules: {
@@ -753,7 +748,6 @@ export const ignores = {
753
748
  'tab',
754
749
  ],
755
750
  'jsonc/key-spacing': 2,
756
- 'jsonc/no-irregular-whitespace': 2,
757
751
  'jsonc/no-octal-escape': 2,
758
752
  'jsonc/object-curly-newline': [
759
753
  2,
@@ -1034,15 +1028,11 @@ export const ignores = {
1034
1028
  },
1035
1029
  ],
1036
1030
  browser = getConfig({
1037
- 'prefer-object-has-own': 0,
1038
- 'es-x/no-array-prototype-at': 2,
1039
- 'es-x/no-array-prototype-findlast-findlastindex': 2,
1040
1031
  'es-x/no-array-prototype-toreversed': 2,
1041
1032
  'es-x/no-array-prototype-tosorted': 2,
1042
1033
  'es-x/no-array-prototype-tospliced': 2,
1043
1034
  'es-x/no-array-prototype-with': 2,
1044
1035
  'es-x/no-dataview-prototype-getfloat16-setfloat16': 2,
1045
- 'es-x/no-error-cause': 2,
1046
1036
  'es-x/no-float16array': 2,
1047
1037
  'es-x/no-iterator': 2,
1048
1038
  'es-x/no-iterator-prototype-drop': 2,
@@ -1051,14 +1041,10 @@ export const ignores = {
1051
1041
  'es-x/no-map-groupby': 2,
1052
1042
  'es-x/no-math-f16round': 2,
1053
1043
  'es-x/no-object-groupby': 2,
1054
- 'es-x/no-object-hasown': 2,
1055
- 'es-x/no-promise-any': 2,
1056
1044
  'es-x/no-promise-try': 2,
1057
1045
  'es-x/no-promise-withresolvers': 2,
1058
- 'es-x/no-regexp-d-flag': 2,
1059
1046
  'es-x/no-regexp-duplicate-named-capturing-groups': 2,
1060
1047
  'es-x/no-regexp-escape': 2,
1061
- 'es-x/no-regexp-lookbehind-assertions': 2,
1062
1048
  'es-x/no-regexp-modifiers': 2,
1063
1049
  'es-x/no-regexp-v-flag': 2,
1064
1050
  'es-x/no-set-prototype-difference': 2,
@@ -1068,13 +1054,12 @@ export const ignores = {
1068
1054
  'es-x/no-set-prototype-issupersetof': 2,
1069
1055
  'es-x/no-set-prototype-symmetricdifference': 2,
1070
1056
  'es-x/no-set-prototype-union': 2,
1071
- 'es-x/no-string-prototype-at': 2,
1072
1057
  'es-x/no-string-prototype-iswellformed': 2,
1073
- 'es-x/no-string-prototype-replaceall': 2,
1074
1058
  'es-x/no-string-prototype-towellformed': 2,
1075
1059
  }),
1076
1060
  dist = getConfig({
1077
- ...esX.configs['flat/restrict-to-es2020'].rules,
1061
+ ...esX.configs['flat/restrict-to-es2022'].rules,
1062
+ 'es-x/no-array-prototype-findlast-findlastindex': 0,
1078
1063
  'es-x/no-iterator-prototype-every': 0,
1079
1064
  'es-x/no-iterator-prototype-filter': 0,
1080
1065
  'es-x/no-iterator-prototype-find': 0,
@@ -1083,8 +1068,6 @@ export const ignores = {
1083
1068
  'es-x/no-iterator-prototype-map': 0,
1084
1069
  'es-x/no-iterator-prototype-reduce': 0,
1085
1070
  'es-x/no-iterator-prototype-some': 0,
1086
- 'es-x/no-regexp-lookbehind-assertions': 2,
1087
- 'es-x/no-regexp-unicode-property-escapes-2020': 2,
1088
1071
  });
1089
1072
 
1090
1073
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/code-standard",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
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"
@@ -18,23 +18,23 @@
18
18
  "lint": "npm run lint:ts"
19
19
  },
20
20
  "dependencies": {
21
- "@eslint/js": "^9.39.2",
22
- "@stylistic/eslint-plugin": "^5.7.1",
23
- "@typescript-eslint/eslint-plugin": "^8.54.0",
24
- "eslint-plugin-es-x": "^9.4.0",
21
+ "@eslint/js": "^9.39.4",
22
+ "@stylistic/eslint-plugin": "^5.10.0",
23
+ "@typescript-eslint/eslint-plugin": "^8.57.0",
24
+ "eslint-plugin-es-x": "^9.5.0",
25
25
  "eslint-plugin-eslint-comments": "^3.2.0",
26
- "eslint-plugin-jsdoc": "^62.5.3",
27
- "eslint-plugin-jsonc": "^2.21.0",
28
- "eslint-plugin-n": "^17.23.2",
26
+ "eslint-plugin-jsdoc": "^62.7.1",
27
+ "eslint-plugin-jsonc": "^3.1.1",
28
+ "eslint-plugin-n": "^17.24.0",
29
29
  "eslint-plugin-promise": "^7.2.1",
30
- "eslint-plugin-regexp": "^3.0.0",
31
- "eslint-plugin-unicorn": "^62.0.0",
32
- "globals": "^17.3.0"
30
+ "eslint-plugin-regexp": "^3.1.0",
31
+ "eslint-plugin-unicorn": "^63.0.0",
32
+ "globals": "^17.4.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/node": "^24.10.11",
36
- "@typescript-eslint/parser": "^8.54.0",
37
- "eslint": "^9.39.2",
38
- "stylelint-plugin-use-baseline": "^1.2.2"
35
+ "@types/node": "^24.11.0",
36
+ "@typescript-eslint/parser": "^8.57.0",
37
+ "eslint": "^9.39.4",
38
+ "stylelint-plugin-use-baseline": "^1.2.7"
39
39
  }
40
40
  }
package/stylelintrc.cjs CHANGED
@@ -38,6 +38,7 @@ module.exports = {
38
38
  {
39
39
  ignoreProperties: {
40
40
  outline: [],
41
+ resize: [],
41
42
  'user-select': ['none'],
42
43
  },
43
44
  },