From b4174515773813ea601a0a6c5bdb042c55da3b51 Mon Sep 17 00:00:00 2001 From: Steffen Rademacker Date: Wed, 8 Jan 2020 14:27:49 +0100 Subject: [PATCH] No global linters anymore --- install/node.sh | 9 --------- nvim/plugins.vim | 12 ++++++------ 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/install/node.sh b/install/node.sh index dc8ec345..c2931fe5 100755 --- a/install/node.sh +++ b/install/node.sh @@ -5,19 +5,10 @@ npm install -g npm@latest npm update -g npm install -g diff-so-fancy -npm install -g eslint - -# Do we need this config globally?! -npm install -g eslint-config-xo-space npm install -g fkill-cli -npm install -g htmlhint -npm install -g jsonlint npm install -g neovim npm install -g npm-check-updates npm install -g prettier npm install -g pure-prompt - -# REPLACE with stylelint -npm install -g sass-lint npm install -g trash-cli npm install -g yarn diff --git a/nvim/plugins.vim b/nvim/plugins.vim index c2a3088f..ab1369d7 100644 --- a/nvim/plugins.vim +++ b/nvim/plugins.vim @@ -32,18 +32,20 @@ xmap (neosnippet_expand_target) " ale let g:ale_lint_on_save=1 -let g:ale_lint_on_text_changed='never' +let g:ale_lint_on_text_changed=0 let g:ale_lint_on_insert_leave=0 let g:ale_lint_on_enter=1 +let g:ale_linters_explicit=1 +let g:ale_fix_on_save=0 let g:ale_linters = { - \ 'css': [], - \ 'html': ['htmlhint'], + \ 'css': ['stylelint'], + \ 'html': ['htmllint'], \ 'javascript': ['eslint'], \ 'javascriptreact': ['eslint'], \ 'json': ['jsonlint'], \ 'jsx': ['eslint'], \ 'php': ['php'], - \ 'scss': ['sasslint'], + \ 'scss': ['stylelint'], \ 'typescript': ['tslint'], \} let g:ale_fixers = { @@ -57,8 +59,6 @@ let g:ale_fixers = { \ 'typescript': ['prettier'], \ 'yaml': ['prettier'], \} -let g:ale_linters_explicit = 1 -let g:ale_fix_on_save = 0 " fzf nnoremap , :Files