Install for Emacs with npm
Supported operating systems:
GNU/Linux and macOS instructions
quick-lint-js has an npm package, making it easy to install the LSP server for use by the Emacs plugin.
In order to install quick-lint-js' npm package, you must first install the npm client.
Install one of the following Emacs plugins:
- Eglot (recommended) (included in Emacs version 29 or newer)
- Flymake (included in Emacs version 26 or newer)
- LSP Mode
Install quick-lint-js globally (on your machine) for use anywhere, including the Emacs plugin:
npm install --global quick-lint-js
Note: The Emacs plugin does not use quick-lint-js if it is installed locally within your project. The Emacs plugin only uses quick-lint-js if it is globally installed.
Install Emacs plugin
- Download the quick-lint-js Emacs plugin.
quick-lint-js-emacs.zip's files into a directory somewhere safe (for example,
quick-lint-js-emacsdirectory to the Emacs
load-pathvariable. For example, add the following line to your init file (e.g.
(add-to-list 'load-path "~/.emacs/quick-lint-js-emacs")
- Restart Emacs.
Read the Emacs plugin docs online.