mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-31 11:56:55 +08:00
Fix markdownlint fixer and add markdownlint-cli2 (#5165)
* fix(tests): fix ale_c_build_dir_names being unset in tests (#5109) - Use ale#Set() to set the ale_c_build_dir_names variable. - Ensure SetUpLinterTest() is called before any Save commands in tests. - Add c.vim to runtime before non-linter tests are executed. - Remove workarounds in c.vim. * feat: Load Prettier from cjs also * fix: wrong command for markdownlint * feat: explicit support for markdownlint-cli2 - Add markdownlint-cli2 linter and fixer, separate from markdownilnt-cli - Rename markdownlint to markdownlint-cli - Keep markdownlint as alias for markdownlint-cli --------- Co-authored-by: w0rp <devw0rp@gmail.com> Co-authored-by: Horacio Sanson <horacio.sanson@dena.jp>
This commit is contained in:
co-authored by
w0rp
Horacio Sanson
parent
1c6e71732f
commit
eff718bee9
@@ -3,3 +3,18 @@ Execute(prettier-eslint should be aliased):
|
||||
|
||||
Execute(prettier-standard should be aliased):
|
||||
AssertEqual 'ale#fixers#prettier_standard#Fix', ale#fix#registry#GetFunc('prettier-standard')
|
||||
|
||||
Execute(markdownlint should be aliased to markdownlint-cli):
|
||||
AssertEqual
|
||||
\ 'ale#fixers#markdownlint#Fix',
|
||||
\ ale#fix#registry#GetFunc('markdownlint')
|
||||
|
||||
Execute(markdownlint-cli should be available directly):
|
||||
AssertEqual
|
||||
\ 'ale#fixers#markdownlint#Fix',
|
||||
\ ale#fix#registry#GetFunc('markdownlint-cli')
|
||||
|
||||
Execute(markdownlint-cli2 should be available directly):
|
||||
AssertEqual
|
||||
\ 'ale#fixers#markdownlint_cli2#Fix',
|
||||
\ ale#fix#registry#GetFunc('markdownlint-cli2')
|
||||
|
||||
Reference in New Issue
Block a user