mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
linters/xo: prefer function shorthand
This commit is contained in:
@@ -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 New Issue
Block a user