三行で Nuxtで静的サイトを作ろうとしてVSCodeでeditor.formatOnSaveをtrueにした Veturによる保存後の整形とNuxtのprettierが矛盾する整形結果を出してエラーが出た 結論としては"vetur.format.defaultFormatter.html": "prettier" ここから本文 先日自分のアイマス周辺の活動をまとめたサイトを作ったんですが、これはgithubのリポジトリで公開している内容からもわかる通りNuxtを使っています。 まずyarn create nuxt-appしたあとにVSCodeの勧めに従ってVeturを入れました。 フォーマットをいちいち考えるのが面倒だったのでeditor.formatOnSaveをtrueにしたところ、Nuxtのprettierはself closing tag1の末尾のスラッシュの手前にスペースを入れ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く