Add yamllint and prettier to openapi.

This commit enables yamllint and prettier on openapi files.
This commit is contained in:
Horacio Sanson
2019-10-27 00:16:23 +09:00
committed by Horacio Sanson
parent 03eae9e085
commit 014b00d4d7
10 changed files with 74 additions and 46 deletions

View 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',
\})