From 2492bcb4e6d02c00c3d9bd0cafebfaf2bb76c228 Mon Sep 17 00:00:00 2001 From: xyhxx <603331487@qq.com> Date: Tue, 31 May 2022 20:28:41 +0800 Subject: [PATCH] add curly --- base-js.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/base-js.js b/base-js.js index 6b22789..ec8a8e6 100644 --- a/base-js.js +++ b/base-js.js @@ -11,6 +11,7 @@ module.exports = { ignoreTemplateLiterals: false, }, ], + "curly": ["error", "multi"], "max-params": [2, 3], "no-unused-vars": 1, //不能有声明后未被使用的变量或参数 "no-use-before-define": 2, //未定义前不能使用 diff --git a/package.json b/package.json index e7a34ab..91b1062 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "eslint-config-proste", "description": "preset eslint config", - "version": "2.10.0", + "version": "2.11.0", "repository": "https://github.com/xyhxx/proste-eslint-config.git", "author": "xyh <603331487@qq.com>", "license": "MIT",