This adds code formating on save using eslint --fix functionality. It uses the emacs package eslintd-fix which uses the npm package eslint_d.js.
21 lines
450 B
EmacsLisp
21 lines
450 B
EmacsLisp
;; -*- no-byte-compile: t; -*-
|
|
;;; lang/javascript/packages.el
|
|
|
|
;; requires node npm tern js-beautify eslint eslint-plugin-react
|
|
|
|
(package! coffee-mode)
|
|
(package! js2-mode)
|
|
(package! js2-refactor)
|
|
(package! rjsx-mode)
|
|
(package! nodejs-repl)
|
|
(package! tern)
|
|
(package! web-beautify)
|
|
(package! skewer-mode)
|
|
(package! eslintd-fix)
|
|
|
|
(when (featurep! :completion company)
|
|
(package! company-tern))
|
|
|
|
(when (featurep! :feature jump)
|
|
(package! xref-js2))
|
|
|