From 77e94d2f3d9aaba19c82e7675ea73615980b8b7c Mon Sep 17 00:00:00 2001 From: huzhushan Date: Mon, 19 Apr 2021 19:43:26 +0800 Subject: [PATCH] update --- .eslintrc.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index b5f1e20..28215c9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,7 +14,15 @@ module.exports = { rules: { "no-console": 0, 'no-use-before-define': 'off', - 'no-unused-vars': 'warn', + "no-unused-vars": [ + 'warn', + { + // 允许声明未使用变量 + "vars": "local", + // 参数不检查 + "args": "none" + } + ], 'vue/no-unused-vars': 'warn', 'no-prototype-builtins': 'off', 'space-before-function-paren': 'off', @@ -36,7 +44,7 @@ module.exports = { 'tabWidth': 2, // 每个tab相当于多少个空格(默认2) 'useTabs': false, // 是否使用tab进行缩进(默认false) 'singleQuote': true, // 使用单引号(默认false) - 'semi': true, // 声明结尾使用分号(默认true) + 'semi': false, // 声明结尾使用分号(默认true) 'trailingComma': 'es5', // 多行使用拖尾逗号(默认none) 'bracketSpacing': true, // 对象字面量的大括号间使用空格(默认true) 'jsxBracketSameLine': false, // 多行JSX中的>放置在最后一行的结尾,而不是另起一行(默认false)