mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-13 16:38:57 +08:00
linters/xo: prefer function shorthand
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
call ale#linter#Define('javascript', {
|
call ale#linter#Define('javascript', {
|
||||||
\ 'name': 'xo',
|
\ 'name': 'xo',
|
||||||
\ 'executable': {b -> ale#handlers#xo#GetExecutable(b)},
|
\ 'executable': function('ale#handlers#xo#GetExecutable'),
|
||||||
\ 'command': {b -> ale#handlers#xo#GetLintCommand(b)},
|
\ 'command': function('ale#handlers#xo#GetLintCommand'),
|
||||||
\ 'callback': 'ale#handlers#xo#HandleJSON',
|
\ 'callback': 'ale#handlers#xo#HandleJSON',
|
||||||
\})
|
\})
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
call ale#linter#Define('typescript', {
|
call ale#linter#Define('typescript', {
|
||||||
\ 'name': 'xo',
|
\ 'name': 'xo',
|
||||||
\ 'executable': {b -> ale#handlers#xo#GetExecutable(b)},
|
\ 'executable': function('ale#handlers#xo#GetExecutable'),
|
||||||
\ 'command': {b -> ale#handlers#xo#GetLintCommand(b)},
|
\ 'command': function('ale#handlers#xo#GetLintCommand'),
|
||||||
\ 'callback': 'ale#handlers#xo#HandleJSON',
|
\ 'callback': 'ale#handlers#xo#HandleJSON',
|
||||||
\})
|
\})
|
||||||
Reference in new issue
Block a user