@lntvow/eslint-config 9.3.14 → 9.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/dist/index.cjs +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -477,6 +477,8 @@ async function javascript(options = {}) {
|
|
|
477
477
|
"no-warning-comments": "off",
|
|
478
478
|
// 强制函数中的变量在一起声明
|
|
479
479
|
"one-var": "off",
|
|
480
|
+
// 优先使用数组和对象解构
|
|
481
|
+
"prefer-destructuring": "off",
|
|
480
482
|
// 禁止使用 Math.pow 幂运算符
|
|
481
483
|
"prefer-exponentiation-operator": "off",
|
|
482
484
|
// 要求使用 Error 对象作为 Promise 拒绝的原因
|
package/dist/index.mjs
CHANGED
|
@@ -396,6 +396,8 @@ async function javascript(options = {}) {
|
|
|
396
396
|
"no-warning-comments": "off",
|
|
397
397
|
// 强制函数中的变量在一起声明
|
|
398
398
|
"one-var": "off",
|
|
399
|
+
// 优先使用数组和对象解构
|
|
400
|
+
"prefer-destructuring": "off",
|
|
399
401
|
// 禁止使用 Math.pow 幂运算符
|
|
400
402
|
"prefer-exponentiation-operator": "off",
|
|
401
403
|
// 要求使用 Error 对象作为 Promise 拒绝的原因
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lntvow/eslint-config",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"author": "lntvow",
|
|
5
5
|
"description": "eslint-config",
|
|
6
6
|
"type": "module",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"tslib": "^2.6.2",
|
|
55
55
|
"typescript": "^5.4.5",
|
|
56
56
|
"vue-eslint-parser": "^9.4.2",
|
|
57
|
-
"@lntvow/eslint-plugin": "^9.
|
|
57
|
+
"@lntvow/eslint-plugin": "^9.4.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"dev": "pnpm build --format esm --watch",
|