@bhsd/code-standard 2.3.0 → 2.4.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 +19 -1
- package/package.json +6 -8
- package/stylelintrc.cjs +13 -1
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'],
|
|
@@ -765,12 +766,28 @@ export const ignores = {
|
|
|
765
766
|
},
|
|
766
767
|
},
|
|
767
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
|
+
],
|
|
768
785
|
ts = [
|
|
769
786
|
...tsRecommended,
|
|
770
787
|
{
|
|
771
788
|
languageOptions: {
|
|
772
789
|
parserOptions: {
|
|
773
|
-
|
|
790
|
+
projectService: true,
|
|
774
791
|
},
|
|
775
792
|
},
|
|
776
793
|
rules: {
|
|
@@ -1091,6 +1108,7 @@ export const extend = (...args) => {
|
|
|
1091
1108
|
...general,
|
|
1092
1109
|
...moreGeneral,
|
|
1093
1110
|
...json,
|
|
1111
|
+
...yaml,
|
|
1094
1112
|
...ts,
|
|
1095
1113
|
...moreFiles,
|
|
1096
1114
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/code-standard",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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"
|
|
@@ -22,23 +22,21 @@
|
|
|
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.
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^8.59.1",
|
|
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
29
|
"eslint-plugin-n": "^17.24.0",
|
|
30
|
-
"eslint-plugin-promise": "^7.
|
|
30
|
+
"eslint-plugin-promise": "^7.3.0",
|
|
31
31
|
"eslint-plugin-regexp": "^3.1.0",
|
|
32
32
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
33
|
+
"eslint-plugin-yml": "^3.3.2",
|
|
33
34
|
"globals": "^17.5.0"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"@types/node": "^24.11.0",
|
|
37
|
-
"@typescript-eslint/parser": "^8.59.
|
|
38
|
-
"eslint": "^10.
|
|
38
|
+
"@typescript-eslint/parser": "^8.59.1",
|
|
39
|
+
"eslint": "^10.3.0",
|
|
39
40
|
"stylelint-plugin-use-baseline": "^1.4.1"
|
|
40
|
-
},
|
|
41
|
-
"overrides": {
|
|
42
|
-
"eslint": "^10.2.1"
|
|
43
41
|
}
|
|
44
42
|
}
|
package/stylelintrc.cjs
CHANGED
|
@@ -8,9 +8,13 @@ module.exports = {
|
|
|
8
8
|
],
|
|
9
9
|
rules: {
|
|
10
10
|
'selector-no-deprecated': true,
|
|
11
|
-
'
|
|
11
|
+
'color-no-invalid-hex': true,
|
|
12
|
+
'selector-no-invalid': true,
|
|
13
|
+
'function-linear-gradient-no-nonstandard-direction': true,
|
|
14
|
+
'function-no-unknown': true,
|
|
12
15
|
'no-unknown-animations': true,
|
|
13
16
|
'no-unknown-custom-media': true,
|
|
17
|
+
'unit-no-unknown': true,
|
|
14
18
|
'at-rule-no-vendor-prefix': true,
|
|
15
19
|
'color-hex-alpha': 'never',
|
|
16
20
|
'color-named': 'never',
|
|
@@ -18,20 +22,28 @@ module.exports = {
|
|
|
18
22
|
'media-feature-name-no-vendor-prefix': true,
|
|
19
23
|
'selector-no-vendor-prefix': true,
|
|
20
24
|
'value-no-vendor-prefix': true,
|
|
25
|
+
'function-name-case': 'lower',
|
|
26
|
+
'selector-type-case': 'lower',
|
|
27
|
+
'value-keyword-case': 'lower',
|
|
21
28
|
'declaration-block-single-line-max-declarations': 1,
|
|
22
29
|
'number-max-precision': 2,
|
|
23
30
|
'alpha-value-notation': 'number',
|
|
24
31
|
'color-function-alias-notation': 'without-alpha',
|
|
25
32
|
'color-function-notation': 'legacy',
|
|
26
33
|
'color-hex-length': 'short',
|
|
34
|
+
'display-notation': 'short',
|
|
27
35
|
'font-weight-notation': 'named-where-possible',
|
|
28
36
|
'hue-degree-notation': 'number',
|
|
37
|
+
'import-notation': 'string',
|
|
29
38
|
'keyframe-selector-notation': 'percentage-unless-within-keyword-only-block',
|
|
39
|
+
'media-feature-range-notation': 'prefix',
|
|
30
40
|
'relative-selector-nesting-notation': 'explicit',
|
|
31
41
|
'selector-not-notation': 'complex',
|
|
32
42
|
'selector-pseudo-element-colon-notation': 'double',
|
|
33
43
|
'font-family-name-quotes': 'always-where-recommended',
|
|
44
|
+
'function-url-quotes': 'never',
|
|
34
45
|
'selector-attribute-quotes': 'always',
|
|
46
|
+
'block-no-redundant-nested-style-rules': true,
|
|
35
47
|
'declaration-block-no-redundant-longhand-properties': true,
|
|
36
48
|
'shorthand-property-no-redundant-values': true,
|
|
37
49
|
'comment-whitespace-inside': 'always',
|