@bhsd/code-standard 2.2.0 → 2.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/eslint.mjs CHANGED
@@ -9,6 +9,7 @@ import jsonc from 'eslint-plugin-jsonc';
9
9
  import typescriptEslint from '@typescript-eslint/eslint-plugin';
10
10
  import n from 'eslint-plugin-n';
11
11
  import esX from 'eslint-plugin-es-x';
12
+ import yml from 'eslint-plugin-yml';
12
13
  import globals from 'globals';
13
14
 
14
15
  const tsRecommended = typescriptEslint.configs['flat/recommended-type-checked'],
@@ -668,6 +669,7 @@ export const ignores = {
668
669
  'jsdoc/no-bad-blocks': [
669
670
  1,
670
671
  {
672
+ ignore: ['__PURE__'],
671
673
  preventAllMultiAsteriskBlocks: true,
672
674
  },
673
675
  ],
@@ -764,12 +766,28 @@ export const ignores = {
764
766
  },
765
767
  },
766
768
  ],
769
+ yaml = [
770
+ ...yml.configs.standard,
771
+ {
772
+ files: ['**/*.yaml', '**/*.yml'],
773
+ rules: {
774
+ 'yml/quotes': [
775
+ 2,
776
+ {
777
+ prefer: 'single',
778
+ },
779
+ ],
780
+ '@stylistic/lines-around-comment': 0,
781
+ '@stylistic/max-len': 0,
782
+ },
783
+ },
784
+ ],
767
785
  ts = [
768
786
  ...tsRecommended,
769
787
  {
770
788
  languageOptions: {
771
789
  parserOptions: {
772
- project: './tsconfig.json',
790
+ projectService: true,
773
791
  },
774
792
  },
775
793
  rules: {
@@ -1090,6 +1108,7 @@ export const extend = (...args) => {
1090
1108
  ...general,
1091
1109
  ...moreGeneral,
1092
1110
  ...json,
1111
+ ...yaml,
1093
1112
  ...ts,
1094
1113
  ...moreFiles,
1095
1114
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/code-standard",
3
- "version": "2.2.0",
3
+ "version": "2.4.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"
@@ -14,6 +14,7 @@
14
14
  ],
15
15
  "main": "eslint.mjs",
16
16
  "scripts": {
17
+ "ls": "npm i --package-lock-only && npm ls --package-lock-only --all --omit=dev",
17
18
  "lint:ts": "eslint --cache .",
18
19
  "lint": "npm run lint:ts"
19
20
  },
@@ -21,20 +22,21 @@
21
22
  "@eslint/js": "^10.0.1",
22
23
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
23
24
  "@stylistic/eslint-plugin": "^5.10.0",
24
- "@typescript-eslint/eslint-plugin": "^8.58.0",
25
+ "@typescript-eslint/eslint-plugin": "^8.59.1",
25
26
  "eslint-plugin-es-x": "^9.6.0",
26
- "eslint-plugin-jsdoc": "^62.7.1",
27
+ "eslint-plugin-jsdoc": "^62.9.0",
27
28
  "eslint-plugin-jsonc": "^3.1.2",
28
29
  "eslint-plugin-n": "^17.24.0",
29
- "eslint-plugin-promise": "^7.2.1",
30
+ "eslint-plugin-promise": "^7.3.0",
30
31
  "eslint-plugin-regexp": "^3.1.0",
31
32
  "eslint-plugin-unicorn": "^64.0.0",
32
- "globals": "^17.4.0"
33
+ "eslint-plugin-yml": "^3.3.2",
34
+ "globals": "^17.5.0"
33
35
  },
34
36
  "devDependencies": {
35
37
  "@types/node": "^24.11.0",
36
- "@typescript-eslint/parser": "^8.58.0",
37
- "eslint": "^10.2.0",
38
+ "@typescript-eslint/parser": "^8.59.1",
39
+ "eslint": "^10.3.0",
38
40
  "stylelint-plugin-use-baseline": "^1.4.1"
39
41
  }
40
42
  }
package/stylelintrc.cjs CHANGED
@@ -7,6 +7,7 @@ module.exports = {
7
7
  '@stylistic/stylelint-plugin',
8
8
  ],
9
9
  rules: {
10
+ 'selector-no-deprecated': true,
10
11
  'declaration-property-value-no-unknown': true,
11
12
  'no-unknown-animations': true,
12
13
  'no-unknown-custom-media': true,
@@ -26,6 +27,7 @@ module.exports = {
26
27
  'font-weight-notation': 'named-where-possible',
27
28
  'hue-degree-notation': 'number',
28
29
  'keyframe-selector-notation': 'percentage-unless-within-keyword-only-block',
30
+ 'relative-selector-nesting-notation': 'explicit',
29
31
  'selector-not-notation': 'complex',
30
32
  'selector-pseudo-element-colon-notation': 'double',
31
33
  'font-family-name-quotes': 'always-where-recommended',