summaryrefslogtreecommitdiff
path: root/ale_linters/javascript
diff options
context:
space:
mode:
authorZefei Xuan <zefei@fb.com>2017-01-05 00:12:36 -0800
committerZefei Xuan <zefei@fb.com>2017-01-05 00:28:32 -0800
commit2c176a234ed139b8e2b0b57ccb4a586de0dcf595 (patch)
tree8a6417a0d5a5ab70fd6f638274e138908857575f /ale_linters/javascript
parented43b17201307bf1562624fbf6ddf93f4d0c93c3 (diff)
downloadale-2c176a234ed139b8e2b0b57ccb4a586de0dcf595.zip
added eslint option to pass in more options
Diffstat (limited to 'ale_linters/javascript')
-rw-r--r--ale_linters/javascript/eslint.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ale_linters/javascript/eslint.vim b/ale_linters/javascript/eslint.vim
index 94086b0a..95948fbd 100644
--- a/ale_linters/javascript/eslint.vim
+++ b/ale_linters/javascript/eslint.vim
@@ -4,6 +4,9 @@
let g:ale_javascript_eslint_executable =
\ get(g:, 'ale_javascript_eslint_executable', 'eslint')
+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)
@@ -21,6 +24,7 @@ endfunction
function! ale_linters#javascript#eslint#GetCommand(buffer) abort
return ale_linters#javascript#eslint#GetExecutable(a:buffer)
+ \ . ' ' . g:ale_javascript_eslint_options
\ . ' -f unix --stdin --stdin-filename %s'
endfunction