Populate quickfix list with eslint errors

Set the makeprg to eslint:

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

Then run make to populate the quickfix list.

Source: til.hashrocket.com

Last updated