summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorJames Owen <james@cryptosense.com>2018-10-31 10:17:55 +0100
committerJames Owen <james@cryptosense.com>2018-10-31 10:17:55 +0100
commitf75848b32ca25aec1d5e6c0a5aa9c7b1e6c64539 (patch)
tree27d54f4eae53375967045627a6e323b1e6cb83a0 /ale_linters
parent86c035466becd57f9bca6ea8e704a3388936ac33 (diff)
downloadale-f75848b32ca25aec1d5e6c0a5aa9c7b1e6c64539.zip
Pass the filename of the current file into jshint
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/javascript/jshint.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/javascript/jshint.vim b/ale_linters/javascript/jshint.vim
index 83909fa4..cb7f66fc 100644
--- a/ale_linters/javascript/jshint.vim
+++ b/ale_linters/javascript/jshint.vim
@@ -18,7 +18,7 @@ function! ale_linters#javascript#jshint#GetCommand(buffer) abort
let l:command .= ' --config ' . ale#Escape(l:jshint_config)
endif
- let l:command .= ' -'
+ let l:command .= ' --filename %s -'
return l:command
endfunction