Skip to content

Commit e5492e1

Browse files
committed
Document default linter selections again
1 parent 87ade74 commit e5492e1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

autoload/ale/linter.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ let s:default_ale_linters = {
5454
\ 'rust': ['cargo', 'rls'],
5555
\ 'spec': [],
5656
\ 'text': [],
57-
\ 'vue': ['vls', 'eslint'],
57+
\ 'vue': ['eslint', 'vls'],
5858
\ 'zsh': ['shell'],
5959
\ 'v': ['v'],
6060
\}

doc/ale.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1602,12 +1602,14 @@ g:ale_linters *g:ale_linters*
16021602
\ 'hack': ['hack'],
16031603
\ 'help': [],
16041604
\ 'inko': ['inko'],
1605+
\ 'json': ['jsonlint', 'spectral'],
1606+
\ 'json5': [],
1607+
\ 'jsonc': [],
16051608
\ 'perl': ['perlcritic'],
16061609
\ 'perl6': [],
16071610
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright'],
16081611
\ 'rust': ['cargo', 'rls'],
16091612
\ 'spec': [],
1610-
\ 'svelte': ['eslint', 'svelteserver'],
16111613
\ 'text': [],
16121614
\ 'vue': ['eslint', 'vls'],
16131615
\ 'zsh': ['shell'],

test/test_filetype_linter_defaults.vader

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Before:
66
let g:ale_linters = {}
77

88
function! GetLinterNames(filetype) abort
9-
return map(ale#linter#Get(a:filetype), 'v:val.name')
9+
return sort(map(ale#linter#Get(a:filetype), 'v:val.name'))
1010
endfunction
1111

1212
After:
@@ -103,7 +103,7 @@ Execute(The defaults for the text filetype should be correct):
103103
AssertEqual [], GetLinterNames('text')
104104

105105
Execute(The defaults for the vue filetype should be correct):
106-
AssertEqual ['vls', 'eslint'], GetLinterNames('vue')
106+
AssertEqual ['eslint', 'vls'], GetLinterNames('vue')
107107

108108
let g:ale_linters_explicit = 1
109109

0 commit comments

Comments
 (0)