Only use eslint for javascript and vue files

This commit is contained in:
Kevin MacMartin 2023-03-30 21:24:40 -04:00
parent 3b04b5886a
commit e2b7585bc9

View file

@ -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': [] },