This commit is contained in:
huzhushan 2021-04-19 19:43:26 +08:00
parent 3c6630166b
commit 77e94d2f3d

View File

@ -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