Closed ampcpmgp closed 6 years ago
npx prettier --write **/*.tag.html
[error] src\app\parts\header.tag.html: SyntaxError: Unexpected token, expected "," (3:7) [error] 1 | import riot from 'riot' [error] 2 | [error] > 3 | <parts-header> [error] | ^ [error] 4 | <span onclick={addCount}>menu</span> [error] 5 | <span>{clickCount} / {clickHistory.length}</span> [error] 6 | <style type="less"> src\app\root.tag.html [error] src\app\root.tag.html: SyntaxError: Unexpected token, expected "," (3:5) [error] 1 | import riot from 'riot' [error] 2 | [error] > 3 | <app-root> [error] | ^ [error] 4 | <parts-header></parts-header> [error] 5 | <h2>{title}</h2> [error] 6 | <div>
https://qiita.com/kiida/items/405bb07c4b52bfee0219 (主にここ) https://prettier.io/docs/en/precommit.html
📝 *.tag.html から jsを分離し、そのjsにprettierを書ける仕組みに変更することを試してみる。
https://github.com/ampcpmgp/parcel-riot-mocktimes-starter/pull/4
↑で別対応したのでクローズ
叩いたコマンド
エラー内容
他に試したこと
参考リンク
https://qiita.com/kiida/items/405bb07c4b52bfee0219 (主にここ) https://prettier.io/docs/en/precommit.html