vue.config.js文件,在module.exports中添加,就可以实现编辑过程中代码自动格式化
module.exports{
config.module
.rule(‘eslint’)
.use(‘eslint-loader’)
.tap(options => {
options.fix = true
return options
})
}
前端代码书写过程中自动eslint格式化
最新推荐文章于 2024-05-13 09:52:23 发布
vue.config.js文件,在module.exports中添加,就可以实现编辑过程中代码自动格式化
module.exports{
config.module
.rule(‘eslint’)
.use(‘eslint-loader’)
.tap(options => {
options.fix = true
return options
})
}