Install for Emacs on macOS
1. Install prerequisites
Install one of the following Emacs plugins:
- Eglot (recommended) (included in Emacs version 29 or newer)
- Flymake (included in Emacs version 26 or newer)
- Flycheck
- LSP Mode
2. Install quick-lint-js
-
Download the latest release of quick-lint-js for your platform:
Extract the downloaded archive.
-
Copy the extracted
quick-lint-js/bin/quick-lint-js
file into a directory in yourPATH
.For example, copy it into the
/usr/local/bin
directory. -
Open a terminal window. Type quick-lint-js --version and press enter to verify the installation succeeded.
3. Install Emacs plugin
- Download the quick-lint-js Emacs plugin.
-
Extract
quick-lint-js-emacs.zip
's files into a directory somewhere safe (for example,~/.emacs/quick-lint-js-emacs/
). -
Add the
quick-lint-js-emacs
directory to the Emacsload-path
variable. For example, add the following line to your init file (e.g.~/.emacs
):(add-to-list 'load-path "~/.emacs/quick-lint-js-emacs")
- Restart Emacs.