merrickluo / eslint-auto-fix-mode

A minor mode that automatically runs eslint --fix on buffer after saving when enabled.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-auto-fix-mode

A minor mode that automatically runs eslint –fix on buffer after saving when enabled.

Installation

(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)

Doom Emacs

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))

Similar packages

About

A minor mode that automatically runs eslint --fix on buffer after saving when enabled.


Languages

Language:Emacs Lisp 100.0%