Nuxt.js(Vue.js)をVSCodeで自動整形メモ

ファイルの保存で自動整形したい。

私の環境では以下の設定で動作しました。

setting.json:

{
    "editor.codeActionsOnSave": {
      "source.fixAll.eslint": true,
      "source.fixAll.stylelint": true
    },
    "vetur.validation.template": false
}

参考:
https://stackoverflow.com/questions/57594486/how-to-set-vscode-format-vue-template-automatically-on-save

コメントを残す

メールアドレスが公開されることはありません。