9fe7b1fe6a
Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
11 lines
398 B
VimL
11 lines
398 B
VimL
" Author: w0rp <devw0rp@gmail.com>
|
|
" Description: eslint for JavaScript files
|
|
|
|
call ale#linter#Define('javascript', {
|
|
\ 'name': 'eslint',
|
|
\ 'output_stream': 'both',
|
|
\ 'executable': function('ale#handlers#eslint#GetExecutable'),
|
|
\ 'cwd': function('ale#handlers#eslint#GetCwd'),
|
|
\ 'command': function('ale#handlers#eslint#GetCommand'),
|
|
\ 'callback': 'ale#handlers#eslint#HandleJSON',
|
|
\})
|