- setting up eslint lsp with autofixing
took me awhile!
This was the missing lspconfig setting for finding my eslintrc file when it wasnβt in the project root:
And hereβs the autocommand to enable auto-fix on save:
- See improvement to autocmd in my dotfiles, which I got from LazyVim ESLint βextraβ (after I suggested a similar idea in a LazyVim Discussion)