From e2b7585bc9580d348d93a7f7f08e2179c5339885 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 30 Mar 2023 21:24:40 -0400 Subject: [PATCH] Only use eslint for javascript and vue files --- vim/config/plugins/ale.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/config/plugins/ale.vim b/vim/config/plugins/ale.vim index e1adcd9..c6dd599 100644 --- a/vim/config/plugins/ale.vim +++ b/vim/config/plugins/ale.vim @@ -29,12 +29,18 @@ let g:ale_lint_on_insert_leave = 1 "show which linter is complaining let g:ale_echo_msg_format = '[%linter%] %s [%severity%]' -"list of ale fixers +"specified ale fixers let g:ale_fixers = { \ 'javascript': [ 'eslint' ], \ 'vue': [ 'eslint' ] \ } +"specified ale linters +let g:ale_linters = { + \ 'javascript': [ 'eslint' ], + \ 'vue': [ 'eslint' ] + \ } + "don't run ale on minified files let g:ale_pattern_options = { \ '\.min\.[^\.]*$': { 'ale_linters': [], 'ale_fixers': [] },