From 36acde533fa5643b85f06e4dc1616135aed878fd Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 6 Oct 2016 12:56:03 +0100 Subject: Fix loading of JSHint configuration files. --- ale_linters/javascript/jshint.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ale_linters/javascript/jshint.vim') diff --git a/ale_linters/javascript/jshint.vim b/ale_linters/javascript/jshint.vim index 12c93f2b..577e5c1b 100644 --- a/ale_linters/javascript/jshint.vim +++ b/ale_linters/javascript/jshint.vim @@ -19,8 +19,8 @@ function! ale_linters#javascript#jshint#GetCommand(buffer) let command = 'jshint --reporter unix' - if jshint_config - let command .= ' --config ' . shellescape(jshint_config) + if !empty(jshint_config) + let command .= ' --config ' . fnameescape(jshint_config) endif let command .= ' -' -- cgit v1.2.3