@bhsd/code-standard 2.5.0 → 2.5.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 +5 -3
- package/package.json +4 -4
package/eslint.mjs
CHANGED
|
@@ -1109,6 +1109,7 @@ export const ignores = {
|
|
|
1109
1109
|
}),
|
|
1110
1110
|
browserES8 = getConfig({
|
|
1111
1111
|
...esX.configs['flat/restrict-to-es2017'].rules,
|
|
1112
|
+
'es-x/no-array-prototype-flat': 0,
|
|
1112
1113
|
'es-x/no-class-instance-fields': 0,
|
|
1113
1114
|
'es-x/no-class-private-fields': 0,
|
|
1114
1115
|
'es-x/no-class-private-methods': 0,
|
|
@@ -1121,8 +1122,6 @@ export const ignores = {
|
|
|
1121
1122
|
'es-x/no-optional-chaining': 0,
|
|
1122
1123
|
'es-x/no-optional-catch-binding': 0,
|
|
1123
1124
|
'es-x/no-rest-spread-properties': 0,
|
|
1124
|
-
'unicorn/prefer-array-flat': 0,
|
|
1125
|
-
'unicorn/prefer-array-flat-map': 0,
|
|
1126
1125
|
'unicorn/prefer-at': 0,
|
|
1127
1126
|
'unicorn/prefer-bigint-literals': 0,
|
|
1128
1127
|
'unicorn/prefer-global-this': 0,
|
|
@@ -1135,7 +1134,10 @@ export const ignores = {
|
|
|
1135
1134
|
'es-x/no-array-prototype-findlast-findlastindex': 0,
|
|
1136
1135
|
'es-x/no-iterator-prototype-flatmap': 0,
|
|
1137
1136
|
}),
|
|
1138
|
-
distES8 = getConfig(
|
|
1137
|
+
distES8 = getConfig({
|
|
1138
|
+
...esX.configs['flat/restrict-to-es2017'].rules,
|
|
1139
|
+
'es-x/no-array-prototype-flat': 0,
|
|
1140
|
+
}, 8);
|
|
1139
1141
|
|
|
1140
1142
|
/**
|
|
1141
1143
|
* 添加ESLint配置项
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/code-standard",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.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,7 +22,7 @@
|
|
|
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.4",
|
|
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",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"globals": "^17.6.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/node": "^25.
|
|
38
|
-
"@typescript-eslint/parser": "^8.59.
|
|
37
|
+
"@types/node": "^25.9.0",
|
|
38
|
+
"@typescript-eslint/parser": "^8.59.4",
|
|
39
39
|
"eslint": "^10.4.0",
|
|
40
40
|
"stylelint-plugin-use-baseline": "^1.4.2"
|
|
41
41
|
}
|