xo: inline filetype handling

This commit is contained in:
Charles B Johnson
2021-01-19 22:16:10 -06:00
parent 23ff19a162
commit 4edfac4db6
4 changed files with 31 additions and 22 deletions

View File

@@ -3,7 +3,7 @@
call ale#linter#Define('javascript', {
\ 'name': 'xo',
\ 'executable': {b -> ale#handlers#xo#GetExecutable(b, 'javascript')},
\ 'command': {b -> ale#handlers#xo#GetLintCommand(b, 'javascript')},
\ 'executable': {b -> ale#handlers#xo#GetExecutable(b)},
\ 'command': {b -> ale#handlers#xo#GetLintCommand(b)},
\ 'callback': 'ale#handlers#xo#HandleJSON',
\})