IDE Config
Atom
插件 |
作用 |
atom-beautify |
代码格式化 |
autocomplete-paths |
路径自动补全 |
emmet |
快速生成 html 代码 |
file-type-icons |
文件图标 |
linter |
代码检查 |
linter-eslint |
eslint检查 |
VSCode
插件 |
作用 |
Beautify |
代码格式化 |
ESLint |
eslint检查 |
settings.json
{
"eslint.autoFixOnSave": true,
"prettier.eslintIntegration": true,
"prettier.semi": false,
"prettier.singleQuote": true,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned"
}
},
"eslint.validate": [
"javascript",
"html"
],
"eslint.options": {
"plugins": ["html"]
},
"window.zoomLevel": 1,
"editor.formatOnSave": true,
"html.format.enable": false,
"html.format.indentHandlebars": true,
"html.format.preserveNewLines": true,
"workbench.sideBar.location": "left"
}