eslint-config-msb
v1.0.2
Published
msb-fe eslint config
Downloads
3
Readme
meishubao
javascript规范
- 引入依赖 eslint-config-msb
yarn add eslint-config-msb -D
- 在eslint的extend段配置 msb
module.exports = {
root: true,
extends: [
'msb',
],
}
- 在对应的编辑器中添加用户配置如下
"eslint.validate": [
"javascript",{
"language": "vue",
"autoFix": true
},
"javascript",
"javascriptreact",
"vue"
],
"editor.formatOnSave": false,
"eslint.autoFixOnSave": true,
- 工具配置
vscode: prettier Vetur eslint