all repos — nixfiles @ 3605ae616be961ccceef096d882a9985ebc7f0c4

System and user configuration, managed by nix and home-manager

Emacs: Use prettier-standard if installed

Alan Pearce
commit

3605ae616be961ccceef096d882a9985ebc7f0c4

parent

590c8d7e92a0dd1d7265a8661c634c70e7f8505d

1 file changed, 2 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -2090,6 +2090,8 @@ (define-hook-helper js2-mode ()
(add-node-modules-path) (when (executable-find "eslint") (setq flycheck-javascript-eslint-executable "eslint")) + (when (executable-find "prettier-standard") + (setq flycheck-javascript-standard-executable "prettier-standard")) (when (executable-find "standard") (setq flycheck-javascript-standard-executable "standard")))))