From 28f4b7af378dea65ccc9c048b6a1671069f8814d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=96?= <603331487@qq.com> Date: Tue, 22 Feb 2022 17:17:15 +0800 Subject: [PATCH] open no-void --- base-js.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base-js.js b/base-js.js index 65ce714..1205cef 100644 --- a/base-js.js +++ b/base-js.js @@ -130,7 +130,7 @@ module.exports = { "no-unreachable": 2, //不能有无法执行的代码 "no-unused-expressions": 0, //禁止无用的表达式 "no-useless-call": 2, //禁止不必要的call和apply - "no-void": 2, //禁用void操作符 + "no-void": 0, //禁用void操作符 "no-var": 2, //禁用var,用let和const代替 "no-warning-comments": [ 1, diff --git a/package.json b/package.json index 708a954..9c233ae 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "eslint-config-proste", "description": "preset eslint config", - "version": "2.5.1", + "version": "2.5.2", "repository": "https://github.com/xyhxx/proste-eslint-config.git", "author": "xyh <603331487@qq.com>", "license": "MIT",