IntelliJ IDEA ESLint autofix/prettier
Action
搜索Actions選擇Fix ESLint Problems(Cmd-Shift-A on OS X or Ctrl+Shift+A on Windows and Linux):
File Watchers
保存文件時自動eslint --fix:
保存文件時自動prettier --write:
適用於IntelliJ IDEA/PHPStorm/WebStorm
參考鏈接:
- https://www.jetbrains.com/help/webstorm/using-file-watchers.html
- https://blog.jetbrains.com/webstorm/2016/08/using-external-tools/



