refactor(vim): move to eslint_d from eslint

Eslint has become slow for some projects for reasons unknown. In an
attempt to speed up my linting process, I'm experimenting with eslint_d,
which keeps a process running. For the time being, I'd like to keep
linting and formatting separate from the Language Server Protocol (LSP)
to avoid the need to install every LSP. This way, I can have `shfmt`
without the bash LSP, for example.

For JavaScript, I may consider moving this into an LSP since I use it
for work, which would justify combining responsibilities. However, for
now, I'll be giving eslint_d a try.
This commit is contained in:
Ade Attwood 2023-11-08 07:56:41 +00:00
parent 4cffec6e7f
commit 7f95ee24f8
2 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ maybe_nvm_install() {
nvm install "${version}"
echo "Installing all of the JS developer tools for this version of node with npm"
npm install -g yarn typescript-language-server typescript emmet-ls cspell vscode-langservers-extracted prettier jsdoc eslint
npm install -g yarn typescript-language-server typescript emmet-ls cspell vscode-langservers-extracted prettier jsdoc eslint eslint_d
fi
}

View file

@ -65,10 +65,10 @@ lint.linters.cspell = {
lint.linters_by_ft = {
php = {'phpcs'},
typescript = {'eslint'},
javascript = {'eslint'},
typescriptreact = {'eslint'},
javascriptreact = {'eslint'},
typescript = {'eslint_d'},
javascript = {'eslint_d'},
typescriptreact = {'eslint_d'},
javascriptreact = {'eslint_d'},
lua = {'luacheck'},
scss = {'stylelint'},
}