1.运用划定规矩
1.中文文档 http://eslint.cn/docs/rules/
2.封闭划定规矩
1.疏忽缩进: 封闭tab和space形成的indent 缩进毛病提醒
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'rules': {
'indent': 0 // 疏忽indent
}
}
2.毛病提醒
1.Value must be omitted for boolean attributes
示意 默许 属性是true
不需要设置 xxx={true}