Find bugs in JavaScript programs.

Install for Neovim with Nix

Supported operating systems:

1. Install prerequisites

In order to install quick-lint-js' Nix package, you must first install Nix or NixOS.

Install and configure one of the following Neovim plugins:

2. Install quick-lint-js

Open a terminal, and run the following command:

nix-env -iA nixpkgs.quick-lint-js

If the above command fails with “error: attribute 'quick-lint-js' in selection path 'nixpkgs.quick-lint-js' not found”, your Nixpkgs is out of date. Either update Nixpkgs, or install from quick-lint-js' repository instead:

nix-env -f https://c.quick-lint-js.com/releases/3.2.0/source/quick-lint-js-3.2.0.tar.gz -iA quick-lint-js

3. Install Neovim plugin

Install this plugin with your favorite Neovim packaging system:

Choose a Neovim package manager above to get started!

Install as a Neovim package

This option requires Neovim 0.5.0 or newer.

  1. Download the quick-lint-js Neovim plugin.
  2. Create the directory ~/.local/share/nvim/site/pack/external/start/.
  3. Copy the extracted quick-lint-js.vim directory into the ~/.local/share/nvim/site/pack/external/start/ directory.
  4. Restart Neovim.

Install with dein.vim

This option requires dein.vim.

  1. Add the following line to your ~/.config/nvim/init.vim file between call dein#begin(...) and call dein#end():
    call dein#add('quick-lint/quick-lint-js', {'rtp': 'plugin/vim/quick-lint-js.vim', 'rev': '3.2.0'})
  2. Restart Neovim.
  3. In Neovim, run :call dein#install().

Install with packer.nvim

This option requires packer.nvim.

  1. Add the following line to your ~/.config/nvim/lua/plugins.lua file between require('packer').startup(function() and end):
    use {'quick-lint/quick-lint-js', rtp = 'plugin/vim/quick-lint-js.vim', tag = '3.2.0', opt = true}
  2. Restart Neovim.
  3. In Neovim, run :PackerSync.

Install with Vim-Plug

This option requires Vim-Plug.

  1. Add the following line to your vimrc file between call plug#begin(...) and call plug#end():
    Plug 'quick-lint/quick-lint-js', {'rtp': 'plugin/vim/quick-lint-js.vim', 'tag': '3.2.0'}
  2. Restart Neovim.
  3. In Neovim, run :PlugInstall.

4. Configure

Configure the Neovim plugin by opening Neovim and running :help quick-lint-js, or read the Neovim plugin docs online.

nvim-lspconfig users can add this line to their init.lua file:

require('lspconfig/quick_lint_js').setup {}