mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-30 14:45:29 +08:00
Add node_modules support for JSHint, and use the global config as a fallback.
This commit is contained in:
17
doc/ale.txt
17
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*
|
||||
|
||||
Reference in New Issue
Block a user