반응형
.vscode/setting.json
{
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
},
}
하고 formatOnSave하니깐 잘됨
참고한 링크 :
How to Format Code on Save in VS Code with ESlint | Aleksandr Hovhannisyan