Skip to content

Instantly share code, notes, and snippets.

@blue0513 blue0513/eslint-auto.el forked from ustun/eslint-auto.el
Last active Jan 3, 2020

Embed
What would you like to do?
run eslint --fix on emacs file save
;; forked from https://gist.github.com/ustun/73321bfcb01a8657e5b8
(defun eslint-fix-file ()
(interactive)
(call-process-shell-command
(concat "eslint --fix " (buffer-file-name)) nil 0))
(defun eslint-fix-file-and-revert ()
(interactive)
(eslint-fix-file)
(revert-buffer t t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.