Document default linter selections again

This commit is contained in:
w0rp 2022-03-05 00:43:56 +00:00
parent 87ade74b4d
commit e5492e124d
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
3 changed files with 6 additions and 4 deletions

View File

@ -54,7 +54,7 @@ let s:default_ale_linters = {
\ 'rust': ['cargo', 'rls'],
\ 'spec': [],
\ 'text': [],
\ 'vue': ['vls', 'eslint'],
\ 'vue': ['eslint', 'vls'],
\ 'zsh': ['shell'],
\ 'v': ['v'],
\}

View File

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

View File

@ -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