summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-06 12:56:03 +0100
committerw0rp <devw0rp@gmail.com>2016-10-06 12:56:09 +0100
commit36acde533fa5643b85f06e4dc1616135aed878fd (patch)
treee77a1a1ba15d2fd6ad9e73a552d929710ee13dff
parent0466ae942cb3d1a8a331fc1cb7d838456cd9bc30 (diff)
downloadale-36acde533fa5643b85f06e4dc1616135aed878fd.zip
Fix loading of JSHint configuration files.
-rw-r--r--ale_linters/javascript/jshint.vim4
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 .= ' -'