mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-06 01:47:47 +08:00
Add yamllint and prettier to openapi.
This commit enables yamllint and prettier on openapi files.
This commit is contained in:
committed by
Horacio Sanson
parent
03eae9e085
commit
014b00d4d7
9
ale_linters/openapi/yamllint.vim
Normal file
9
ale_linters/openapi/yamllint.vim
Normal file
@@ -0,0 +1,9 @@
|
||||
call ale#Set('yaml_yamllint_executable', 'yamllint')
|
||||
call ale#Set('yaml_yamllint_options', '')
|
||||
|
||||
call ale#linter#Define('openapi', {
|
||||
\ 'name': 'yamllint',
|
||||
\ 'executable': {b -> ale#Var(b, 'yaml_yamllint_executable')},
|
||||
\ 'command': function('ale#handlers#yamllint#GetCommand'),
|
||||
\ 'callback': 'ale#handlers#yamllint#Handle',
|
||||
\})
|
||||
Reference in New Issue
Block a user