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'],
|
\ 'rust': ['cargo', 'rls'],
|
||||||
\ 'spec': [],
|
\ 'spec': [],
|
||||||
\ 'text': [],
|
\ 'text': [],
|
||||||
\ 'vue': ['vls', 'eslint'],
|
\ 'vue': ['eslint', 'vls'],
|
||||||
\ 'zsh': ['shell'],
|
\ 'zsh': ['shell'],
|
||||||
\ 'v': ['v'],
|
\ 'v': ['v'],
|
||||||
\}
|
\}
|
||||||
|
|
|
@ -1602,12 +1602,14 @@ g:ale_linters *g:ale_linters*
|
||||||
\ 'hack': ['hack'],
|
\ 'hack': ['hack'],
|
||||||
\ 'help': [],
|
\ 'help': [],
|
||||||
\ 'inko': ['inko'],
|
\ 'inko': ['inko'],
|
||||||
|
\ 'json': ['jsonlint', 'spectral'],
|
||||||
|
\ 'json5': [],
|
||||||
|
\ 'jsonc': [],
|
||||||
\ 'perl': ['perlcritic'],
|
\ 'perl': ['perlcritic'],
|
||||||
\ 'perl6': [],
|
\ 'perl6': [],
|
||||||
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright'],
|
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright'],
|
||||||
\ 'rust': ['cargo', 'rls'],
|
\ 'rust': ['cargo', 'rls'],
|
||||||
\ 'spec': [],
|
\ 'spec': [],
|
||||||
\ 'svelte': ['eslint', 'svelteserver'],
|
|
||||||
\ 'text': [],
|
\ 'text': [],
|
||||||
\ 'vue': ['eslint', 'vls'],
|
\ 'vue': ['eslint', 'vls'],
|
||||||
\ 'zsh': ['shell'],
|
\ 'zsh': ['shell'],
|
||||||
|
|
|
@ -6,7 +6,7 @@ Before:
|
||||||
let g:ale_linters = {}
|
let g:ale_linters = {}
|
||||||
|
|
||||||
function! GetLinterNames(filetype) abort
|
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
|
endfunction
|
||||||
|
|
||||||
After:
|
After:
|
||||||
|
@ -103,7 +103,7 @@ Execute(The defaults for the text filetype should be correct):
|
||||||
AssertEqual [], GetLinterNames('text')
|
AssertEqual [], GetLinterNames('text')
|
||||||
|
|
||||||
Execute(The defaults for the vue filetype should be correct):
|
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
|
let g:ale_linters_explicit = 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue