diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-06 12:56:03 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-06 12:56:09 +0100 |
commit | 36acde533fa5643b85f06e4dc1616135aed878fd (patch) | |
tree | e77a1a1ba15d2fd6ad9e73a552d929710ee13dff /ale_linters/javascript/jshint.vim | |
parent | 0466ae942cb3d1a8a331fc1cb7d838456cd9bc30 (diff) | |
download | ale-36acde533fa5643b85f06e4dc1616135aed878fd.zip |
Fix loading of JSHint configuration files.
Diffstat (limited to 'ale_linters/javascript/jshint.vim')
-rw-r--r-- | ale_linters/javascript/jshint.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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 .= ' -' |