aaronjensen/eslintd-fix

Emacs minor-mode to automatically fix javascript with eslint_d.

66

stars

51

commits

Emacs Lisp

primary language

Feb 24, 2024

updated

emacs
eslint
javascript

README

eslintd-fix

MELPA MELPA Stable

Minor-mode to automatically fix javascript with eslint_d. Built with a focus on speed, you will typically barely notice a delay when saving, if at all.

Note that this package will not show errors, only fix them on save. You'll want to configure flycheck to use eslint_d as well.

This package was recently rewritten to use a direct network connection to eslint_d rather than a node shell command. This is significantly faster, but could have introduced bugs. If you notice anything out of the ordinary, please report it.

Installation

You can install this package from Melpa

M-x package-install RET eslintd-fix RET

Usage

Ensure that you have eslint_d 5.2.0+ installed and in your path.

Then, in your init.el:

(add-hook 'js2-mode-hook 'eslintd-fix-mode)

Options

You can change the location of eslint_d.

(setq eslintd-fix-executable "/my/path/eslint_d")

See M-x customize-group eslintd-fix for more.

Thanks

Contributors

aaronjensen

42 commits

DamienCassou

3 commits

sebastiencs

2 commits

calbrecht

1 commits

aaronjensen/eslintd-fix

Emacs minor-mode to automatically fix javascript with eslint_d.

66

stars

51

commits

Emacs Lisp

primary language

Feb 24, 2024

updated

emacs
eslint
javascript

README

eslintd-fix

MELPA MELPA Stable

Minor-mode to automatically fix javascript with eslint_d. Built with a focus on speed, you will typically barely notice a delay when saving, if at all.

Note that this package will not show errors, only fix them on save. You'll want to configure flycheck to use eslint_d as well.

This package was recently rewritten to use a direct network connection to eslint_d rather than a node shell command. This is significantly faster, but could have introduced bugs. If you notice anything out of the ordinary, please report it.

Installation

You can install this package from Melpa

M-x package-install RET eslintd-fix RET

Usage

Ensure that you have eslint_d 5.2.0+ installed and in your path.

Then, in your init.el:

(add-hook 'js2-mode-hook 'eslintd-fix-mode)

Options

You can change the location of eslint_d.

(setq eslintd-fix-executable "/my/path/eslint_d")

See M-x customize-group eslintd-fix for more.

Thanks

Contributors

aaronjensen

42 commits

DamienCassou

3 commits

sebastiencs

2 commits

calbrecht

1 commits

Languages

Emacs Lisp

100.0%