summaryrefslogtreecommitdiff
path: root/doc/ale.txt
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-23 13:25:50 +0100
committerw0rp <devw0rp@gmail.com>2016-10-23 13:25:50 +0100
commit226b4ed58681b2bdac494e989adae81df653f341 (patch)
treebdb8690dc3085493747a947f8299247bb41a15a2 /doc/ale.txt
parent36461b69d7dbf0abe494cd450dd9233eed7b672f (diff)
downloadale-226b4ed58681b2bdac494e989adae81df653f341.zip
Add node_modules support for JSHint, and use the global config as a fallback.
Diffstat (limited to 'doc/ale.txt')
-rw-r--r--doc/ale.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index c879a98b..52702b2b 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -399,8 +399,25 @@ g:ale_javascript_jshint_executable *g:ale_javascript_jshint_executable*
Type: |String|
Default: `'jshint'`
+ ALE will first discover the jshint path in an ancestor node_modules
+ directory. If no such path exists, this variable will be used instead.
+
This variable can be changed to change the path to jshint.
+ If you wish to use only a globally installed version of jshint, set
+ |g:ale_javascript_jshint_use_global| to `1`.
+
+
+g:ale_javascript_jshint_use_global *g:ale_javascript_jshint_use_global*
+
+ Type: |String|
+ Default: `0`
+
+ This variable controls whether or not ALE will search for a local path for
+ jshint first. If this variable is set to `1`, then ALE will always use the
+ global version of jshint, in preference to locally installed versions of
+ jshint in node_modules.
+
-------------------------------------------------------------------------------
4.3. phpcs *ale-linter-options-phpcs*