linters/xo: prefer function shorthand

This commit is contained in:
Charles B Johnson 2021-01-19 23:07:33 -06:00
parent 5fd5fa5305
commit 03bd494fd4
No known key found for this signature in database
GPG key ID: 390184033B3454E3
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -1,6 +1,6 @@
call ale#linter#Define('typescript', {
\ 'name': 'xo',
\ 'executable': {b -> ale#handlers#xo#GetExecutable(b)},
\ 'command': {b -> ale#handlers#xo#GetLintCommand(b)},
\ 'executable': function('ale#handlers#xo#GetExecutable'),
\ 'command': function('ale#handlers#xo#GetLintCommand'),
\ 'callback': 'ale#handlers#xo#HandleJSON',
\})