在WebStorm使用EsLint来进行格式化代码(format)

直接输出干货

image.png

点击【All actions on save】

image.png

保存之后,试试 Command+Option+L 是不是根据ESLint文件配置格式化代码了。

评论

暂无评论