eslint校验 自动格式化(letvar自动格式化const,双引号自动格式化单引号,及自动去掉末尾逗号,分号)
Posted 奥特曼
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eslint校验 自动格式化(letvar自动格式化const,双引号自动格式化单引号,及自动去掉末尾逗号,分号)相关的知识,希望对你有一定的参考价值。
{
"liveServer.settings.donotShowInfoMsg": true,
"editor.fontSize": 18,
"editor.fontFamily": "Consolas, 'Courier New', monospace",
"emmet.variables": {
"lang": "zh-CN"
},
// #值设置为true时,每次保存的时候自动格式化;值设置为false时,代码格式化请按shift+alt+F
"editor.formatOnType": true,
"editor.tokenColorCustomizations": {
"comments": "#82e0aa" // 注释
},
"workbench.iconTheme": "vscode-icons",
"git.ignoreWindowsGit27Warning": true,
"launch": {
"configurations": [],
"compounds": []
},
"explorer.confirmDelete": false,
"editor.wordWrap": "on",
"workbench.colorTheme": "Meng Dark Pro",
"cssrem.autoRemovePrefixZero": false,
"cssrem.fixedDigits": 3,
"cssrem.rootFontSize": 24,
"editor.mouseWheelZoom": true,
"git.enableSmartCommit": true,
"workbench.sideBar.location": "right",
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
// 分割线
"eslint.enable": true,
"eslint.run": "onType",
"eslint.options": {
"extensions": [".js", ".vue", ".jsx", ".tsx"]
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[javascript]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"diffEditor.ignoreTrimWhitespace": false,
"window.zoomLevel": -1,
"security.workspace.trust.untrustedFiles": "open",
}
以上是关于eslint校验 自动格式化(letvar自动格式化const,双引号自动格式化单引号,及自动去掉末尾逗号,分号)的主要内容,如果未能解决你的问题,请参考以下文章