From 2e442a2cab1e65f7cc030d6699af4b082b0328bb Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 22 May 2017 09:38:33 +0100 Subject: [PATCH] Fix initialization of the use_global variable for eslint --- ale_linters/javascript/eslint.vim | 3 --- autoload/ale/handlers/eslint.vim | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ale_linters/javascript/eslint.vim b/ale_linters/javascript/eslint.vim index 9fd2007..acf17a4 100644 --- a/ale_linters/javascript/eslint.vim +++ b/ale_linters/javascript/eslint.vim @@ -4,9 +4,6 @@ let 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 return ale#handlers#eslint#GetExecutable(a:buffer) \ . ' ' . ale#Var(a:buffer, 'javascript_eslint_options') diff --git a/autoload/ale/handlers/eslint.vim b/autoload/ale/handlers/eslint.vim index e2ff3fa..eb7459b 100644 --- a/autoload/ale/handlers/eslint.vim +++ b/autoload/ale/handlers/eslint.vim @@ -1,8 +1,8 @@ " Author: w0rp " Description: eslint functions for handling and fixing errors. -let g:ale_javascript_eslint_executable = -\ get(g:, 'ale_javascript_eslint_executable', 'eslint') +call ale#Set('javascript_eslint_executable', 'eslint') +call ale#Set('javascript_eslint_use_global', 0) function! ale#handlers#eslint#GetExecutable(buffer) abort if ale#Var(a:buffer, 'javascript_eslint_use_global')