@bhsd/code-standard 2.1.1 → 2.3.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 +7 -8
- package/package.json +16 -12
- package/stylelintrc.cjs +3 -0
package/eslint.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import promise from 'eslint-plugin-promise';
|
|
|
4
4
|
import regexp from 'eslint-plugin-regexp';
|
|
5
5
|
import unicorn from 'eslint-plugin-unicorn';
|
|
6
6
|
import jsdoc from 'eslint-plugin-jsdoc';
|
|
7
|
-
import eslintComments from 'eslint-plugin-eslint-comments';
|
|
7
|
+
import eslintComments from '@eslint-community/eslint-plugin-eslint-comments';
|
|
8
8
|
import jsonc from 'eslint-plugin-jsonc';
|
|
9
9
|
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
|
10
10
|
import n from 'eslint-plugin-n';
|
|
@@ -145,7 +145,6 @@ export const ignores = {
|
|
|
145
145
|
2,
|
|
146
146
|
'getBeforeSet',
|
|
147
147
|
],
|
|
148
|
-
'guard-for-in': 2,
|
|
149
148
|
'logical-assignment-operators': [
|
|
150
149
|
2,
|
|
151
150
|
'always',
|
|
@@ -290,10 +289,6 @@ export const ignores = {
|
|
|
290
289
|
'prefer-rest-params': 2,
|
|
291
290
|
'prefer-spread': 2,
|
|
292
291
|
'prefer-template': 2,
|
|
293
|
-
radix: [
|
|
294
|
-
2,
|
|
295
|
-
'as-needed',
|
|
296
|
-
],
|
|
297
292
|
'require-await': 2,
|
|
298
293
|
'require-unicode-regexp': 2,
|
|
299
294
|
strict: 2,
|
|
@@ -568,6 +563,7 @@ export const ignores = {
|
|
|
568
563
|
checkArrowFunctions: false,
|
|
569
564
|
},
|
|
570
565
|
],
|
|
566
|
+
'unicorn/consistent-template-literal-escape': 2,
|
|
571
567
|
'unicorn/empty-brace-spaces': 2,
|
|
572
568
|
'unicorn/error-message': 2,
|
|
573
569
|
'unicorn/explicit-length-check': 2,
|
|
@@ -620,6 +616,7 @@ export const ignores = {
|
|
|
620
616
|
'unicorn/prefer-negative-index': 2,
|
|
621
617
|
'unicorn/prefer-optional-catch-binding': 2,
|
|
622
618
|
'unicorn/prefer-prototype-methods': 2,
|
|
619
|
+
'unicorn/prefer-simple-condition-first': 2,
|
|
623
620
|
'unicorn/prefer-single-call': 2,
|
|
624
621
|
'unicorn/prefer-spread': 2,
|
|
625
622
|
'unicorn/prefer-string-raw': 2,
|
|
@@ -631,15 +628,16 @@ export const ignores = {
|
|
|
631
628
|
2,
|
|
632
629
|
'avoid',
|
|
633
630
|
],
|
|
631
|
+
'unicorn/switch-case-break-position': 2,
|
|
634
632
|
'unicorn/text-encoding-identifier-case': 2,
|
|
635
633
|
'unicorn/throw-new-error': 2,
|
|
636
634
|
},
|
|
637
635
|
},
|
|
638
636
|
{
|
|
639
|
-
plugins: {'eslint-comments': eslintComments},
|
|
637
|
+
plugins: {'@eslint-community/eslint-comments': eslintComments},
|
|
640
638
|
rules: {
|
|
641
639
|
...eslintComments.configs.recommended.rules,
|
|
642
|
-
'eslint-comments/disable-enable-pair': [
|
|
640
|
+
'@eslint-community/eslint-comments/disable-enable-pair': [
|
|
643
641
|
2,
|
|
644
642
|
{
|
|
645
643
|
allowWholeFile: true,
|
|
@@ -670,6 +668,7 @@ export const ignores = {
|
|
|
670
668
|
'jsdoc/no-bad-blocks': [
|
|
671
669
|
1,
|
|
672
670
|
{
|
|
671
|
+
ignore: ['__PURE__'],
|
|
673
672
|
preventAllMultiAsteriskBlocks: true,
|
|
674
673
|
},
|
|
675
674
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/code-standard",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.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,27 +14,31 @@
|
|
|
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
|
},
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@eslint/js": "^
|
|
22
|
+
"@eslint/js": "^10.0.1",
|
|
23
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
22
24
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
24
|
-
"eslint-plugin-es-x": "^9.
|
|
25
|
-
"eslint-plugin-
|
|
26
|
-
"eslint-plugin-
|
|
27
|
-
"eslint-plugin-jsonc": "^3.1.1",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
26
|
+
"eslint-plugin-es-x": "^9.6.0",
|
|
27
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
28
|
+
"eslint-plugin-jsonc": "^3.1.2",
|
|
28
29
|
"eslint-plugin-n": "^17.24.0",
|
|
29
30
|
"eslint-plugin-promise": "^7.2.1",
|
|
30
31
|
"eslint-plugin-regexp": "^3.1.0",
|
|
31
|
-
"eslint-plugin-unicorn": "^
|
|
32
|
-
"globals": "^17.
|
|
32
|
+
"eslint-plugin-unicorn": "^64.0.0",
|
|
33
|
+
"globals": "^17.5.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@types/node": "^24.11.0",
|
|
36
|
-
"@typescript-eslint/parser": "^8.
|
|
37
|
-
"eslint": "^
|
|
38
|
-
"stylelint-plugin-use-baseline": "^1.
|
|
37
|
+
"@typescript-eslint/parser": "^8.59.0",
|
|
38
|
+
"eslint": "^10.2.1",
|
|
39
|
+
"stylelint-plugin-use-baseline": "^1.4.1"
|
|
40
|
+
},
|
|
41
|
+
"overrides": {
|
|
42
|
+
"eslint": "^10.2.1"
|
|
39
43
|
}
|
|
40
44
|
}
|
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',
|
|
@@ -79,6 +81,7 @@ module.exports = {
|
|
|
79
81
|
'@stylistic/no-eol-whitespace': true,
|
|
80
82
|
'@stylistic/no-extra-semicolons': true,
|
|
81
83
|
'@stylistic/no-missing-end-of-source-newline': true,
|
|
84
|
+
'@stylistic/no-multiple-whitespaces': true,
|
|
82
85
|
},
|
|
83
86
|
reportInvalidScopeDisables: true,
|
|
84
87
|
reportNeedlessDisables: true,
|