> For the complete documentation index, see [llms.txt](https://notes.eliasnorrby.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.eliasnorrby.com/vim/eslint-quickfix.md).

# Populate quickfix list with eslint errors

Set the `makeprg` to `eslint`:

```vim
set makeprg=npx\ eslint\ -f\ unix\ --quiet\ 'src/**/*.{js,ts,jsx,tsx}'
```

Then run `make` to populate the quickfix list.

Source: [til.hashrocket.com](https://til.hashrocket.com/posts/bkeplhlekr-fill-your-quickfix-window-with-lint)
