Home > front end >  About vscode esline and prettier plug-in configuration correction implementation code
About vscode esline and prettier plug-in configuration correction implementation code

Time:05-27

Have bosses familiar vscode, help me to configure the compiler of the two plug-ins, make my compiler can check fault and error correction,

CodePudding user response:

 
//code stored, automated ESlint formatting code
"Editor. CodeActionsOnSave" : {
"Source. FixAll. Eslint" : true,
},
//add eslint automatic formatting support
"Eslint. Validate" :
"Javascript."
"Javascriptreact,"
"Typescript,"
"Vue
"//{
//"language" : "typescript,"
//"autoFix" : true
//}
],
"Eslint. CodeActionsOnSave. Mode" : "all",


  • Related