linters/xo: prefer function shorthand
This commit is contained in:
parent
5fd5fa5305
commit
03bd494fd4
2 changed files with 4 additions and 4 deletions
|
@ -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',
|
||||
\})
|
||||
|
|
|
@ -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',
|
||||
\})
|
||||
|
|
Reference in a new issue