feature: 配置eslint

This commit is contained in:
zyn
2023-12-19 14:10:18 +08:00
parent 2c1e9809b4
commit 8578a9cd87
+1 -1
View File
@@ -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'], // 强制使用单引号