mirror of https://github.com/dense-analysis/ale
Document default linter selections again
This commit is contained in:
parent
87ade74b4d
commit
e5492e124d
|
@ -54,7 +54,7 @@ let s:default_ale_linters = {
|
|||
\ 'rust': ['cargo', 'rls'],
|
||||
\ 'spec': [],
|
||||
\ 'text': [],
|
||||
\ 'vue': ['vls', 'eslint'],
|
||||
\ 'vue': ['eslint', 'vls'],
|
||||
\ 'zsh': ['shell'],
|
||||
\ 'v': ['v'],
|
||||
\}
|
||||
|
|
|
@ -1602,12 +1602,14 @@ g:ale_linters *g:ale_linters*
|
|||
\ 'hack': ['hack'],
|
||||
\ 'help': [],
|
||||
\ 'inko': ['inko'],
|
||||
\ 'json': ['jsonlint', 'spectral'],
|
||||
\ 'json5': [],
|
||||
\ 'jsonc': [],
|
||||
\ 'perl': ['perlcritic'],
|
||||
\ 'perl6': [],
|
||||
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright'],
|
||||
\ 'rust': ['cargo', 'rls'],
|
||||
\ 'spec': [],
|
||||
\ 'svelte': ['eslint', 'svelteserver'],
|
||||
\ 'text': [],
|
||||
\ 'vue': ['eslint', 'vls'],
|
||||
\ 'zsh': ['shell'],
|
||||
|
|
|
@ -6,7 +6,7 @@ Before:
|
|||
let g:ale_linters = {}
|
||||
|
||||
function! GetLinterNames(filetype) abort
|
||||
return map(ale#linter#Get(a:filetype), 'v:val.name')
|
||||
return sort(map(ale#linter#Get(a:filetype), 'v:val.name'))
|
||||
endfunction
|
||||
|
||||
After:
|
||||
|
@ -103,7 +103,7 @@ Execute(The defaults for the text filetype should be correct):
|
|||
AssertEqual [], GetLinterNames('text')
|
||||
|
||||
Execute(The defaults for the vue filetype should be correct):
|
||||
AssertEqual ['vls', 'eslint'], GetLinterNames('vue')
|
||||
AssertEqual ['eslint', 'vls'], GetLinterNames('vue')
|
||||
|
||||
let g:ale_linters_explicit = 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue