4 ms·
One option is to add prettier as a precommit hook, eg; https://github.com/prettier/prettier#pre-commit-hook-for-changed-files https://github.com/prettier/pretti
by rattray 10y ago
One option is to add prettier as a precommit hook, eg; https://github.com/prettier/prettier#pre-commit-hook-for-changed-files https://github.com/prettier/prettier#pre-commit-hook-for-cha... which doesn't require editor integrations at all.
There are integrations for most editors (Atoms, Emacs, Vim, Neovim, VSCode, VS, Sublime Text, JetBrains):
https://github.com/prettier/prettier#editor-integration https://github.com/prettier/prettier#editor-integration