Fix initialization of the use_global variable for eslint
This commit is contained in:
parent
71bf2bfb94
commit
2e442a2cab
@ -4,9 +4,6 @@
|
|||||||
let g:ale_javascript_eslint_options =
|
let g:ale_javascript_eslint_options =
|
||||||
\ get(g:, 'ale_javascript_eslint_options', '')
|
\ get(g:, 'ale_javascript_eslint_options', '')
|
||||||
|
|
||||||
let g:ale_javascript_eslint_use_global =
|
|
||||||
\ get(g:, 'ale_javascript_eslint_use_global', 0)
|
|
||||||
|
|
||||||
function! ale_linters#javascript#eslint#GetCommand(buffer) abort
|
function! ale_linters#javascript#eslint#GetCommand(buffer) abort
|
||||||
return ale#handlers#eslint#GetExecutable(a:buffer)
|
return ale#handlers#eslint#GetExecutable(a:buffer)
|
||||||
\ . ' ' . ale#Var(a:buffer, 'javascript_eslint_options')
|
\ . ' ' . ale#Var(a:buffer, 'javascript_eslint_options')
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
" Author: w0rp <devw0rp@gmail.com>
|
" Author: w0rp <devw0rp@gmail.com>
|
||||||
" Description: eslint functions for handling and fixing errors.
|
" Description: eslint functions for handling and fixing errors.
|
||||||
|
|
||||||
let g:ale_javascript_eslint_executable =
|
call ale#Set('javascript_eslint_executable', 'eslint')
|
||||||
\ get(g:, 'ale_javascript_eslint_executable', 'eslint')
|
call ale#Set('javascript_eslint_use_global', 0)
|
||||||
|
|
||||||
function! ale#handlers#eslint#GetExecutable(buffer) abort
|
function! ale#handlers#eslint#GetExecutable(buffer) abort
|
||||||
if ale#Var(a:buffer, 'javascript_eslint_use_global')
|
if ale#Var(a:buffer, 'javascript_eslint_use_global')
|
||||||
|
Loading…
Reference in New Issue
Block a user