mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-22 03:34:10 -05:00
Only use eslint for javascript and vue files
This commit is contained in:
parent
3b04b5886a
commit
e2b7585bc9
1 changed files with 7 additions and 1 deletions
|
@ -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': [] },
|
||||
|
|
Loading…
Reference in a new issue