diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-23 13:04:41 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-23 13:04:41 +0100 |
commit | 36461b69d7dbf0abe494cd450dd9233eed7b672f (patch) | |
tree | f1e7ea352041889d94df362f77474c9b083998f0 /doc | |
parent | f94865c4ce2a61e304faf5aa99d643b44260fde5 (diff) | |
download | ale-36461b69d7dbf0abe494cd450dd9233eed7b672f.zip |
Support loading eslint from node_modules, re issue #118.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale.txt | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index 42531598..c879a98b 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -370,8 +370,25 @@ g:ale_javascript_eslint_executable *g:ale_javascript_eslint_executable* Type: |String| Default: `'eslint'` - This variable can be changed to change the path to eslint. If you have - eslint_d installed, you can set this option to use eslint_d instead. + ALE will first discover the eslint path in an ancestor node_modules + directory. If no such path exists, this variable will be used instead. + + This variable can be set to change the path to eslint. If you have eslint_d + installed, you can set this option to use eslint_d instead. + + If you wish to use only a globally installed version of eslint, set + |g:ale_javascript_eslint_use_global| to `1`. + + +g:ale_javascript_eslint_use_global *g:ale_javascript_eslint_use_global* + + Type: |String| + Default: `0` + + This variable controls whether or not ALE will search for a local path for + eslint first. If this variable is set to `1`, then ALE will always use the + global version of eslint, in preference to locally installed versions of + eslint in node_modules. ------------------------------------------------------------------------------- |