module.exports = { lintOnSave: false, devServer: { overlay: { warning: false, errors: false } } }
文件末尾存在空行(eol-last):Too many blank lines at the end of file.Max of 0 allowed
缺少分号(‘semi’: [‘error’,’always’]) :Missing semicolon
函数关键字后面缺少空格 :Missing space before function parentheses
字符串没有使用单引号(’quotes’: [1, ’single’]) :String must use singlequote
缩进错误 : Expected indentation of 2 spaces but found 4
没有使用全等(eqeqeq) : Expected ’ === ’ and instaed saw ‘==’
导入组件却没有使用 : ‘seller’ is defined but never used
new了一个对象却没有赋值给某个常量(可以在该实例前添加此代码/eslint-disable
no-new/忽略ESLint的检查): Do not user’new’ for side effects
超过一行空白行(no-multiple-empty-lines):More than 1 blank line not allowed
注释符 // 后面缩进错误(lines-around-comment): Expected space or tab after
‘//’ in comment
模块导入没有放在顶部:Import in body of module; reorder to top
前面缺少空格:Missing space before
已定义但是没有使用:‘scope’ is defined but never used
**************************************************************************************************************************************
规则的含义:
转:https://blog.csdn.net/wron_path/article/details/104655844
原文:https://www.cnblogs.com/ygyy/p/14206801.html