summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2022-03-05 00:43:56 +0000
committerw0rp <devw0rp@gmail.com>2022-03-05 00:43:56 +0000
commite5492e124dbd57dda5301ed8fd41f7539b44c23a (patch)
treeeb25781ef4cb73a65be9f2aaad305b758d7e1d4d
parent87ade74b4dbf4d1cb779284bc7b0f9b2c4be80eb (diff)
downloadale-e5492e124dbd57dda5301ed8fd41f7539b44c23a.zip
Document default linter selections again
-rw-r--r--autoload/ale/linter.vim2
-rw-r--r--doc/ale.txt4
-rw-r--r--test/test_filetype_linter_defaults.vader4
3 files changed, 6 insertions, 4 deletions
diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim
index 0dfb4915..9079dfa0 100644
--- a/autoload/ale/linter.vim
+++ b/autoload/ale/linter.vim
@@ -54,7 +54,7 @@ let s:default_ale_linters = {
\ 'rust': ['cargo', 'rls'],
\ 'spec': [],
\ 'text': [],
-\ 'vue': ['vls', 'eslint'],
+\ 'vue': ['eslint', 'vls'],
\ 'zsh': ['shell'],
\ 'v': ['v'],
\}
diff --git a/doc/ale.txt b/doc/ale.txt
index ec2cf6e0..f0638082 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -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'],
diff --git a/test/test_filetype_linter_defaults.vader b/test/test_filetype_linter_defaults.vader
index 7277ff00..dad8e5ee 100644
--- a/test/test_filetype_linter_defaults.vader
+++ b/test/test_filetype_linter_defaults.vader
@@ -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