summaryrefslogtreecommitdiff
path: root/doc/ale-javascript.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ale-javascript.txt')
-rw-r--r--doc/ale-javascript.txt35
1 files changed, 19 insertions, 16 deletions
diff --git a/doc/ale-javascript.txt b/doc/ale-javascript.txt
index 95d2504a..09d7f99d 100644
--- a/doc/ale-javascript.txt
+++ b/doc/ale-javascript.txt
@@ -86,8 +86,9 @@ g:ale_javascript_prettier_use_global *g:ale_javascript_prettier_use_global*
See |ale-integrations-local-executables|
-g:ale_javascript_prettier_use_local_config *g:ale_javascript_prettier_use_local_config*
- *b:ale_javascript_prettier_use_local_config*
+g:ale_javascript_prettier_use_local_config
+ *g:ale_javascript_prettier_use_local_config*
+ *b:ale_javascript_prettier_use_local_config*
Type: |Number|
Default: `0`
@@ -96,16 +97,10 @@ g:ale_javascript_prettier_use_local_config *g:ale_javascript_prettier_use_lo
===============================================================================
prettier-eslint *ale-javascript-prettier-eslint*
-ALE supports `prettier-eslint` for easy integration with projects, but it is
-not recommended for new projects. ALE instead recommends configuring
-|g:ale_fixers| to run `'prettier'` and `'eslint'` in a sequence like so: >
-
- let g:ale_fixers = {'javascript': ['prettier', 'eslint']}
-<
-
-This is because `prettier-eslint` cannot be configured to use the ESLint
-configuration file for input given via stdin, which is how ALE integrates with
-the tool.
+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|
g:ale_javascript_prettier_eslint_executable
*g:ale_javascript_prettier_eslint_executable*
@@ -133,6 +128,14 @@ g:ale_javascript_prettier_eslint_use_global
See |ale-integrations-local-executables|
+g:ale_javascript_prettier_eslint_legacy
+ *g:ale_javascript_prettier_eslint_legacy*
+ *b:ale_javascript_prettier_eslint_legacy*
+ Type: |Number|
+ Default: `0`
+
+ Fallback option for `prettier-eslint` < 4.2.0
+
===============================================================================
prettier-standard *ale-javascript-prettier-standard*
@@ -148,8 +151,8 @@ g:ale_javascript_prettier_standard_executable
g:ale_javascript_prettier_standard_options
- *g:ale_javascript_prettier_standard_options*
- *b:ale_javascript_prettier_standard_options*
+ *g:ale_javascript_prettier_standard_options*
+ *b:ale_javascript_prettier_standard_options*
Type: |String|
Default: `''`
@@ -157,8 +160,8 @@ g:ale_javascript_prettier_standard_options
g:ale_javascript_prettier_standard_use_global
- *g:ale_javascript_prettier_standard_use_global*
- *b:ale_javascript_prettier_standard_use_global*
+ *g:ale_javascript_prettier_standard_use_global*
+ *b:ale_javascript_prettier_standard_use_global*
Type: |Number|
Default: `0`