2017-03-28 18:25:44 -04:00
|
|
|
===============================================================================
|
|
|
|
ALE JavaScript Integration *ale-javascript-options*
|
|
|
|
|
2017-06-08 04:37:51 -04: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 18:25:44 -04:00
|
|
|
|
2017-07-08 09:17:26 -04:00
|
|
|
===============================================================================
|
2017-03-28 18:25:44 -04:00
|
|
|
eslint *ale-javascript-eslint*
|
|
|
|
|
|
|
|
g:ale_javascript_eslint_executable *g:ale_javascript_eslint_executable*
|
2017-04-27 17:04:34 -04:00
|
|
|
*b:ale_javascript_eslint_executable*
|
2017-03-28 18:25:44 -04:00
|
|
|
Type: |String|
|
|
|
|
Default: `'eslint'`
|
|
|
|
|
2017-06-18 06:03:31 -04:00
|
|
|
See |ale-integrations-local-executables|
|
2017-03-28 18:25:44 -04:00
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_eslint_options *g:ale_javascript_eslint_options*
|
2017-04-27 17:04:34 -04:00
|
|
|
*b:ale_javascript_eslint_options*
|
2017-03-28 18:25:44 -04: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 17:04:34 -04:00
|
|
|
*b:ale_javascript_eslint_use_global*
|
2017-03-28 18:48:55 -04:00
|
|
|
Type: |Number|
|
2017-03-28 18:25:44 -04:00
|
|
|
Default: `0`
|
|
|
|
|
2017-06-18 06:03:31 -04:00
|
|
|
See |ale-integrations-local-executables|
|
2017-03-28 18:25:44 -04:00
|
|
|
|
|
|
|
|
2017-08-22 16:35:09 -04:00
|
|
|
g:ale_javascript_eslint_suppress_eslintignore
|
|
|
|
*g:ale_javascript_eslint_suppress_eslintignore*
|
|
|
|
*b:ale_javascript_eslint_suppress_eslintignore*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
2017-10-28 07:11:33 -04:00
|
|
|
This variable can be set to `1` to disable warnings for files being ignored
|
|
|
|
by eslint.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_eslint_suppress_missing_config
|
|
|
|
*g:ale_javascript_eslint_suppress_missing_config*
|
|
|
|
*b:ale_javascript_eslint_suppress_missing_config*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
This variable can be set to `1` to disable errors for missing eslint
|
|
|
|
configuration files.
|
|
|
|
|
|
|
|
When turning this option on, eslint will not report any problems when no
|
|
|
|
configuration files are found.
|
2017-08-22 16:35:09 -04:00
|
|
|
|
|
|
|
|
2017-09-10 14:42:45 -04:00
|
|
|
===============================================================================
|
|
|
|
flow *ale-javascript-flow*
|
|
|
|
|
|
|
|
g:ale_javascript_flow_executable *g:ale_javascript_flow_executable*
|
|
|
|
*b:ale_javascript_flow_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'flow'`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
2017-11-21 09:37:01 -05:00
|
|
|
g:ale_javascript_flow_use_home_config *g:ale_javascript_flow_use_home_config*
|
|
|
|
*b:ale_javascript_flow_use_home_config*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
When set to `1`, ALE will allow Flow to be executed with configuration files
|
|
|
|
from your home directory. ALE will not run Flow with home directory
|
|
|
|
configuration files by default, as doing so can lead to Vim consuming all of
|
|
|
|
your RAM and CPU power.
|
|
|
|
|
|
|
|
|
2017-09-10 14:42:45 -04:00
|
|
|
g:ale_javascript_flow_use_global *g:ale_javascript_flow_use_global*
|
|
|
|
*b:ale_javascript_flow_use_global*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
|
|
|
===============================================================================
|
|
|
|
jscs *ale-javascript-jscs*
|
|
|
|
|
|
|
|
g:ale_javascript_jscs_executable *g:ale_javascript_jscs_executable*
|
|
|
|
*b:ale_javascript_jscs_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'jscs'`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_jscs_use_global *g:ale_javascript_jscs_use_global*
|
|
|
|
*b:ale_javascript_jscs_use_global*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
|
|
|
===============================================================================
|
|
|
|
jshint *ale-javascript-jshint*
|
|
|
|
|
|
|
|
g:ale_javascript_jshint_executable *g:ale_javascript_jshint_executable*
|
|
|
|
*b:ale_javascript_jshint_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'jshint'`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_jshint_use_global *g:ale_javascript_jshint_use_global*
|
|
|
|
*b:ale_javascript_jshint_use_global*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
2017-07-08 09:17:26 -04:00
|
|
|
===============================================================================
|
2017-05-21 18:03:33 -04: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 13:31:52 -04:00
|
|
|
Default: `'prettier'`
|
2017-05-21 18:03:33 -04:00
|
|
|
|
2017-06-18 06:03:31 -04:00
|
|
|
See |ale-integrations-local-executables|
|
2017-05-21 18:03:33 -04:00
|
|
|
|
|
|
|
|
2017-05-27 13:31:52 -04:00
|
|
|
g:ale_javascript_prettier_options *g:ale_javascript_prettier_options*
|
2017-05-21 18:03:33 -04:00
|
|
|
*b:ale_javascript_prettier_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to pass additional options to prettier.
|
|
|
|
|
|
|
|
|
2017-05-27 13:31:52 -04:00
|
|
|
g:ale_javascript_prettier_use_global *g:ale_javascript_prettier_use_global*
|
|
|
|
*b:ale_javascript_prettier_use_global*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
2017-06-18 06:03:31 -04:00
|
|
|
See |ale-integrations-local-executables|
|
2017-05-27 13:31:52 -04:00
|
|
|
|
2017-09-10 14:42:45 -04:00
|
|
|
|
2017-07-08 09:17:26 -04:00
|
|
|
===============================================================================
|
2017-05-27 13:31:52 -04:00
|
|
|
prettier-eslint *ale-javascript-prettier-eslint*
|
|
|
|
|
2017-08-18 06:37:08 -04:00
|
|
|
ALE supports `prettier-eslint` >= 4.2.0. Using lower version is not recommended
|
|
|
|
because it cannot be configured to use the ESLint configuration file for input
|
|
|
|
given via stdin. However ALE could be set up on your own risk with older
|
|
|
|
versions with |g:ale_javascript_prettier_eslint_legacy|
|
|
|
|
|
2017-05-27 13:31:52 -04:00
|
|
|
g:ale_javascript_prettier_eslint_executable
|
|
|
|
*g:ale_javascript_prettier_eslint_executable*
|
|
|
|
*b:ale_javascript_prettier_eslint_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'prettier-eslint'`
|
|
|
|
|
2017-06-18 06:03:31 -04:00
|
|
|
See |ale-integrations-local-executables|
|
2017-05-27 13:31:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
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 18:03:33 -04:00
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
2017-06-18 06:03:31 -04:00
|
|
|
See |ale-integrations-local-executables|
|
2017-05-21 18:03:33 -04:00
|
|
|
|
2017-08-18 06:37:08 -04:00
|
|
|
g:ale_javascript_prettier_eslint_legacy
|
2017-08-30 17:23:59 -04:00
|
|
|
*g:ale_javascript_prettier_eslint_legacy*
|
|
|
|
*b:ale_javascript_prettier_eslint_legacy*
|
2017-08-18 06:37:08 -04:00
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
Fallback option for `prettier-eslint` < 4.2.0
|
|
|
|
|
2017-05-21 18:03:33 -04:00
|
|
|
|
2017-07-08 09:17:26 -04:00
|
|
|
===============================================================================
|
2017-06-29 07:55:00 -04:00
|
|
|
prettier-standard *ale-javascript-prettier-standard*
|
2017-06-28 11:35:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_prettier_standard_executable
|
2017-06-29 07:55:00 -04:00
|
|
|
*g:ale_javascript_prettier_standard_executable*
|
|
|
|
*b:ale_javascript_prettier_standard_executable*
|
2017-06-28 11:35:19 -04:00
|
|
|
Type: |String|
|
|
|
|
Default: `'prettier-standard'`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_prettier_standard_options
|
2017-08-30 17:23:59 -04:00
|
|
|
*g:ale_javascript_prettier_standard_options*
|
|
|
|
*b:ale_javascript_prettier_standard_options*
|
2017-06-28 11:35:19 -04:00
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to pass additional options to prettier-standard.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_prettier_standard_use_global
|
2017-08-30 17:23:59 -04:00
|
|
|
*g:ale_javascript_prettier_standard_use_global*
|
|
|
|
*b:ale_javascript_prettier_standard_use_global*
|
2017-06-28 11:35:19 -04:00
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
2017-03-28 18:25:44 -04:00
|
|
|
|
|
|
|
|
2017-07-08 09:17:26 -04:00
|
|
|
===============================================================================
|
2017-03-28 18:48:55 -04:00
|
|
|
standard *ale-javascript-standard*
|
|
|
|
|
|
|
|
g:ale_javascript_standard_executable *g:ale_javascript_standard_executable*
|
2017-04-27 17:04:34 -04:00
|
|
|
*b:ale_javascript_standard_executable*
|
2017-03-28 18:48:55 -04:00
|
|
|
Type: |String|
|
|
|
|
Default: `'standard'`
|
|
|
|
|
2017-06-18 06:03:31 -04:00
|
|
|
See |ale-integrations-local-executables|
|
2017-03-28 18:48:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_standard_options *g:ale_javascript_standard_options*
|
2017-04-27 17:04:34 -04:00
|
|
|
*b:ale_javascript_standard_options*
|
2017-03-28 18:48:55 -04: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 17:04:34 -04:00
|
|
|
*b:ale_javascript_standard_use_global*
|
2017-03-28 18:48:55 -04:00
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
2017-06-18 06:03:31 -04:00
|
|
|
See |ale-integrations-local-executables|
|
2017-03-28 18:48:55 -04:00
|
|
|
|
|
|
|
|
2017-07-08 09:17:26 -04:00
|
|
|
===============================================================================
|
2017-03-28 18:25:44 -04:00
|
|
|
xo *ale-javascript-xo*
|
|
|
|
|
|
|
|
g:ale_javascript_xo_executable *g:ale_javascript_xo_executable*
|
2017-04-27 17:04:34 -04:00
|
|
|
*b:ale_javascript_xo_executable*
|
2017-03-28 18:25:44 -04:00
|
|
|
Type: |String|
|
|
|
|
Default: `'xo'`
|
|
|
|
|
2017-06-18 06:03:31 -04:00
|
|
|
See |ale-integrations-local-executables|
|
2017-03-28 18:25:44 -04:00
|
|
|
|
|
|
|
|
|
|
|
g:ale_javascript_xo_options *g:ale_javascript_xo_options*
|
2017-04-27 17:04:34 -04:00
|
|
|
*b:ale_javascript_xo_options*
|
2017-03-28 18:25:44 -04: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 17:04:34 -04:00
|
|
|
*b:ale_javascript_xo_use_global*
|
2017-03-28 18:48:55 -04:00
|
|
|
Type: |Number|
|
2017-03-28 18:25:44 -04:00
|
|
|
Default: `0`
|
|
|
|
|
2017-06-18 06:03:31 -04:00
|
|
|
See |ale-integrations-local-executables|
|
2017-03-28 18:25:44 -04:00
|
|
|
|
|
|
|
|
2017-07-08 09:17:26 -04:00
|
|
|
===============================================================================
|
2017-03-28 18:25:44 -04:00
|
|
|
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|