A minor mode that automatically runs eslint –fix on buffer after saving when enabled.
(straight-use-package
'(eslint-auto-fix-mode :type git :host github :repo "merrickluo/eslint-auto-fix-mode"))
Enable it in the major modes you want eslint to run.
(add-hook 'js2-mode #'eslint-auto-fix-mode)
(add-hook 'typescript-mode #'eslint-auto-fix-mode)
packages.el
(package! eslint-auto-fix-mode :recipe (:host github :repo "merrickluo/eslint-auto-fix-mode"))
config.el
(use-package! eslint-auto-fix-mode
:hook (typescript-mode js2-mode))
- https://github.com/codesuki/eslint-fix
- https://github.com/emacs-lsp/lsp-mode I’m writing this just waiting for this issue to be resolved.