Posted 鍓嶇瀛︽捣
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了相关的知识,希望对你有一定的参考价值。
ESLint閰嶇疆
鎺ㄨ崘閰嶇疆ESLint閰嶇疆 https://segmentfault.com/a/1190000012634130
浠ヤ笅鎺ㄨ崘涓€濂梀scode鐨凟SLint鏍煎紡鍖栦唬鐮?nbsp;
{
// vscode榛樿鍚敤浜嗘牴鎹枃浠剁被鍨嬭嚜鍔ㄨ缃畉absize鐨勯€夐」
"editor.detectIndentation": false,
// 閲嶆柊璁惧畾tabsize
"editor.tabSize": 2,
// #姣忔淇濆瓨鐨勬椂鍊欒嚜鍔ㄦ牸寮忓寲
"editor.formatOnSave": true,
// #姣忔淇濆瓨鐨勬椂鍊欏皢浠g爜鎸塭slint鏍煎紡杩涜淇
//autoFixedOnSave 璁剧疆宸插簾寮冿紝閲囩敤濡備笅鏂扮殑璁剧疆
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
//autoFix榛樿寮€鍚紝鍙渶杈撳叆瀛楃涓叉暟缁勫嵆鍙?/span>
"eslint.validate": [
"javascript",
"vue",
"html"
],
// #鍘绘帀浠g爜缁撳熬鐨勫垎鍙?
"prettier.semi": true,
// #浣跨敤甯﹀紩鍙锋浛浠e弻寮曞彿
"prettier.singleQuote": true,
// #璁╁嚱鏁?鍚?鍜屽悗闈㈢殑鎷彿涔嬮棿鍔犱釜绌烘牸
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
// #杩欎釜鎸夌敤鎴疯嚜韬範鎯€夋嫨
"vetur.format.defaultFormatter.html": "js-beautify-html",
// // #璁﹙ue涓殑js鎸夌紪杈戝櫒鑷甫鐨則s鏍煎紡杩涜鏍煎紡鍖?
// "vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "auto"
// #vue缁勪欢涓環tml浠g爜鏍煎紡鍖栨牱寮?/span>
}
},
// 鏍煎紡鍖杝tylus, 闇€瀹夎Manta's Stylus Supremacy鎻掍欢
// 杩欓噷浣跨敤鐨勬槸css棰勫鐞嗗櫒锛宻tylus锛屽彲鏍规嵁鑷韩闇€瑕侊紝鍋氬嚭鏇存敼銆?/span>
"stylusSupremacy.insertColons": false, // 鏄惁鎻掑叆鍐掑彿
"stylusSupremacy.insertSemicolons": false, // 鏄惁鎻掑叆鍒嗗ソ
"stylusSupremacy.insertBraces": false, // 鏄惁鎻掑叆澶ф嫭鍙?/span>
"stylusSupremacy.insertNewLineAroundImports": false, // import涔嬪悗鏄惁鎹㈣
"stylusSupremacy.insertNewLineAroundBlocks": false,
"task.autoDetect": "off",
"files.autoSave": "afterDelay",
"window.zoomLevel": -1,
"gitlens.gitCommands.closeOnFocusOut": true,
"winopacity.opacity": 168,
"workbench.startupEditor": "newUntitledFile" // 涓や釜閫夋嫨鍣ㄤ腑鏄惁鎹㈣
}
涓嬫锛屾垜浠潵鐪嬩竴涓?span class="mq-132">AST锛圓bstract Syntax Tree 鎶借薄璇硶鏍戯級杩欎釜寮哄ぇ鐨勫伐鍏穨
以上是关于的主要内容,如果未能解决你的问题,请参考以下文章