eslint使用と設定、およびきれいの使用について

公式サイトをeslint:https://eslint.bootcss.com/docs/user-guide/getting-started

eslint設定:http://eslint.cn/docs/rules/

参考記事:https://blog.csdn.net/qq_23876873/article/details/89677509

 

カスタムeslintルール

新.prettierrcファイル(JSON形式)、および設定項目を追加

{
    「SEMI」:falseに、//セミコロンキャンセル
    「シングルクォートを」:設定//真の単一引用符に
}

 

vscodeプラグは自動的にフォーマットされたインストール

プラグイン.prettierを検索し、インストールします

右に書式

 

おすすめ

転載: www.cnblogs.com/yejunm3/p/12518349.html