From 8578a9cd87f5e43e79776c2d2d2455e080b28d4c Mon Sep 17 00:00:00 2001 From: zyn Date: Tue, 19 Dec 2023 14:10:18 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E9=85=8D=E7=BD=AEeslint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index fc3bc36a5..6e541c3c2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -23,7 +23,7 @@ module.exports = { ], 'prefer-arrow-callback': 'warn', // 建议使用箭头函数 'prefer-const': 'error', // 强制使用 const 定义常量 - 'indent': ['error', 2], // 缩进 2 个空格 + 'indent': ['error', 2, { SwitchCase: 1 }], // 缩进 2 个空格 SwitchCase缩进 // '@stylistic/js/indent': ['error', 2], // 缩进 2 个空格 'no-mixed-spaces-and-tabs': 'error', // 禁止混用空格和 tab缩进 'quotes': ['error', 'single'], // 强制使用单引号