@lntvow/eslint-config 9.3.12 → 9.3.13

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 CHANGED
@@ -465,6 +465,8 @@ async function javascript(options = {}) {
465
465
  "no-undefined": "off",
466
466
  // 禁止标识符中有下划线
467
467
  "no-underscore-dangle": "off",
468
+ // 禁用无意义的表达式
469
+ "no-unused-expressions": ["error", { allowShortCircuit: true, allowTaggedTemplates: true, allowTernary: true }],
468
470
  // 禁用 void 操作符
469
471
  "no-void": "off",
470
472
  // 禁止在注释中使用特定的警告术语
package/dist/index.mjs CHANGED
@@ -384,6 +384,8 @@ async function javascript(options = {}) {
384
384
  "no-undefined": "off",
385
385
  // 禁止标识符中有下划线
386
386
  "no-underscore-dangle": "off",
387
+ // 禁用无意义的表达式
388
+ "no-unused-expressions": ["error", { allowShortCircuit: true, allowTaggedTemplates: true, allowTernary: true }],
387
389
  // 禁用 void 操作符
388
390
  "no-void": "off",
389
391
  // 禁止在注释中使用特定的警告术语
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/eslint-config",
3
- "version": "9.3.12",
3
+ "version": "9.3.13",
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.3.12"
57
+ "@lntvow/eslint-plugin": "^9.3.13"
58
58
  },
59
59
  "scripts": {
60
60
  "dev": "pnpm build --format esm --watch",