2017-03-28 22:25:44 +00:00
|
|
|
===============================================================================
|
|
|
|
ALE JavaScript Integration *ale-javascript-options*
|
|
|
|
|
2017-06-08 08:37:51 +00:00
|
|
|
*ale-eslint-nested-configuration-files*
|
|
|
|
|
|
|
|
For fixing files with ESLint, nested configuration files with `root: false`
|
|
|
|
are not supported. This is because ALE fixes files by writing the contents of
|
|
|
|
buffers to temporary files, and then explicitly sets the configuration file.
|
|
|
|
Configuration files which are set explicitly must be root configuration files.
|
|
|
|
If you are using nested configuration files, you should restructure your
|
|
|
|
project so your configuration files use `extends` instead.
|
|
|
|
|
|
|
|
See the ESLint documentation here:
|
|
|
|
http://eslint.org/docs/user-guide/configuring#extending-configuration-files
|
|
|
|
|
|
|
|
You should change the structure of your project from this: >
|
|
|
|
/path/foo/.eslintrc.js # root: true
|
|
|
|
/path/foo/bar/.eslintrc.js # root: false
|
|
|
|
<
|
|
|
|
To this: >
|
|
|
|
/path/foo/.base-eslintrc.js # Base configuration here
|
|
|
|
/path/foo/.eslintrc.js # extends: ["/path/foo/.base-eslintrc.js"]
|
|
|
|
/path/foo/bar/.eslintrc.js # extends: ["/path/foo/.base-eslintrc.js"]
|
|
|
|
<
|
2017-03-28 22:25:44 +00:00
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
eslint *ale-javascript-eslint*
|
|
|
|
|
|
|
|
g:ale_javascript_eslint_executable *g:ale_javascript_eslint_executable*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_eslint_executable*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `'eslint'`
|
|
|
|
|
|
|
|
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_options *g:ale_javascript_eslint_options*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_eslint_options*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to pass additional options to eslint.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_eslint_use_global *g:ale_javascript_eslint_use_global*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_eslint_use_global*
|
2017-03-28 22:48:55 +00:00
|
|
|
Type: |Number|
|
2017-03-28 22:25:44 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
2017-05-21 22:03:33 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
prettier *ale-javascript-prettier*
|
|
|
|
|
|
|
|
g:ale_javascript_prettier_executable *g:ale_javascript_prettier_executable*
|
|
|
|
*b:ale_javascript_prettier_executable*
|
|
|
|
Type: |String|
|
2017-05-27 17:31:52 +00:00
|
|
|
Default: `'prettier'`
|
2017-05-21 22:03:33 +00:00
|
|
|
|
2017-05-27 17:31:52 +00:00
|
|
|
ALE will first discover the prettier path in an ancestor node_modules
|
2017-05-21 22:03:33 +00:00
|
|
|
directory. If no such path exists, this variable will be used instead.
|
|
|
|
|
2017-05-27 17:31:52 +00:00
|
|
|
If you wish to use only a globally installed version of prettier set
|
2017-05-21 22:03:33 +00:00
|
|
|
|g:ale_javascript_prettier_use_global| to `1`.
|
|
|
|
|
|
|
|
|
2017-05-27 17:31:52 +00:00
|
|
|
g:ale_javascript_prettier_options *g:ale_javascript_prettier_options*
|
2017-05-21 22:03:33 +00:00
|
|
|
*b:ale_javascript_prettier_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to pass additional options to prettier.
|
|
|
|
|
|
|
|
|
2017-05-27 17:31:52 +00:00
|
|
|
g:ale_javascript_prettier_use_global *g:ale_javascript_prettier_use_global*
|
|
|
|
*b:ale_javascript_prettier_use_global*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
This variable controls whether or not ALE will search for a local path for
|
|
|
|
prettier first. If this variable is set to `1`, then ALE will always use the
|
|
|
|
global version of Prettier.
|
|
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
prettier-eslint *ale-javascript-prettier-eslint*
|
|
|
|
|
|
|
|
g:ale_javascript_prettier_eslint_executable
|
|
|
|
*g:ale_javascript_prettier_eslint_executable*
|
|
|
|
*b:ale_javascript_prettier_eslint_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'prettier-eslint'`
|
|
|
|
|
|
|
|
ALE will first discover the prettier-eslint path in an ancestor node_modules
|
|
|
|
directory. If no such path exists, this variable will be used instead.
|
|
|
|
|
|
|
|
If you wish to use only a globally installed version of prettier-eslint set
|
|
|
|
|g:ale_javascript_prettier_eslint_use_global| to `1`.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_prettier_eslint_options
|
|
|
|
*g:ale_javascript_prettier_eslint_options*
|
|
|
|
*b:ale_javascript_prettier_eslint_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to pass additional options to prettier-eslint.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_prettier_eslint_use_global
|
|
|
|
*g:ale_javascript_prettier_eslint_use_global*
|
|
|
|
*b:ale_javascript_prettier_eslint_use_global*
|
2017-05-21 22:03:33 +00:00
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
This variable controls whether or not ALE will search for a local path for
|
2017-05-27 17:31:52 +00:00
|
|
|
prettier-eslint first. If this variable is set to `1`, then ALE will always
|
|
|
|
use the global version of Prettier-eslint.
|
2017-05-21 22:03:33 +00:00
|
|
|
|
|
|
|
|
2017-03-28 22:25:44 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
flow *ale-javascript-flow*
|
|
|
|
|
|
|
|
g:ale_javascript_flow_executable *g:ale_javascript_flow_executable*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_flow_executable*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `'flow'`
|
|
|
|
|
|
|
|
ALE will first discover the flow path in an ancestor node_modules
|
|
|
|
directory. If no such path exists, this variable will be used instead.
|
|
|
|
|
|
|
|
If you wish to use only a globally installed version of flow, set
|
|
|
|
|g:ale_javascript_flow_use_global| to `1`.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_flow_use_global *g:ale_javascript_flow_use_global*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_flow_use_global*
|
2017-03-28 22:48:55 +00:00
|
|
|
Type: |Number|
|
2017-03-28 22:25:44 +00:00
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
This variable controls whether or not ALE will search for a local path for
|
|
|
|
flow first. If this variable is set to `1`, then ALE will always use the
|
|
|
|
global version of flow, in preference to locally installed versions of
|
|
|
|
flow in node_modules.
|
|
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
jshint *ale-javascript-jshint*
|
|
|
|
|
|
|
|
g:ale_javascript_jshint_executable *g:ale_javascript_jshint_executable*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_jshint_executable*
|
2017-03-28 22:25:44 +00:00
|
|
|
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*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_jshint_use_global*
|
2017-03-28 22:48:55 +00:00
|
|
|
Type: |Number|
|
2017-03-28 22:25:44 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
2017-03-28 22:48:55 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
standard *ale-javascript-standard*
|
|
|
|
|
|
|
|
g:ale_javascript_standard_executable *g:ale_javascript_standard_executable*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_standard_executable*
|
2017-03-28 22:48:55 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `'standard'`
|
|
|
|
|
|
|
|
Same as the eslint option.
|
|
|
|
|
|
|
|
See: |g:ale_javascript_eslint_executable|
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_standard_options *g:ale_javascript_standard_options*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_standard_options*
|
2017-03-28 22:48:55 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to pass additional options to standard.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_standard_use_global *g:ale_javascript_standard_use_global*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_standard_use_global*
|
2017-03-28 22:48:55 +00:00
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
Same as the eslint option.
|
|
|
|
|
|
|
|
See: |g:ale_javascript_eslint_use_global|
|
|
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
2017-03-28 22:25:44 +00:00
|
|
|
xo *ale-javascript-xo*
|
|
|
|
|
|
|
|
g:ale_javascript_xo_executable *g:ale_javascript_xo_executable*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_xo_executable*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `'xo'`
|
|
|
|
|
2017-03-28 22:48:55 +00:00
|
|
|
Same as the eslint option.
|
2017-03-28 22:25:44 +00:00
|
|
|
|
2017-03-28 22:48:55 +00:00
|
|
|
See: |g:ale_javascript_eslint_executable|
|
2017-03-28 22:25:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_xo_options *g:ale_javascript_xo_options*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_xo_options*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to pass additional options to xo.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_xo_use_global *g:ale_javascript_xo_use_global*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_javascript_xo_use_global*
|
2017-03-28 22:48:55 +00:00
|
|
|
Type: |Number|
|
2017-03-28 22:25:44 +00:00
|
|
|
Default: `0`
|
|
|
|
|
2017-03-28 22:48:55 +00:00
|
|
|
Same as the eslint option.
|
|
|
|
|
|
|
|
See: |g:ale_javascript_eslint_use_global|
|
2017-03-28 22:25:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|