summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-06-07 15:33:41 +0100
committerw0rp <devw0rp@gmail.com>2017-06-07 15:33:41 +0100
commit9ee7a6d57c37d7360ba2650f11f32d87f66446f0 (patch)
treedad09c6c978b2e40615b87e605330ffefdeabcd4
parent7517fd82260f03cc3ab7f77c391b6f1ff7372c6a (diff)
downloadale-9ee7a6d57c37d7360ba2650f11f32d87f66446f0.zip
Fix #630 - Initialize Prettier options
-rw-r--r--autoload/ale/fixers/prettier.vim1
-rw-r--r--autoload/ale/fixers/prettier_eslint.vim1
2 files changed, 2 insertions, 0 deletions
diff --git a/autoload/ale/fixers/prettier.vim b/autoload/ale/fixers/prettier.vim
index 76548506..a9c3aaa3 100644
--- a/autoload/ale/fixers/prettier.vim
+++ b/autoload/ale/fixers/prettier.vim
@@ -4,6 +4,7 @@
call ale#Set('javascript_prettier_executable', 'prettier')
call ale#Set('javascript_prettier_use_global', 0)
+call ale#Set('javascript_prettier_options', '')
function! ale#handlers#prettier#GetExecutable(buffer) abort
return ale#node#FindExecutable(a:buffer, 'javascript_prettier', [
diff --git a/autoload/ale/fixers/prettier_eslint.vim b/autoload/ale/fixers/prettier_eslint.vim
index 57120e1e..1ba9af25 100644
--- a/autoload/ale/fixers/prettier_eslint.vim
+++ b/autoload/ale/fixers/prettier_eslint.vim
@@ -4,6 +4,7 @@
call ale#Set('javascript_prettier_eslint_executable', 'prettier-eslint')
call ale#Set('javascript_prettier_eslint_use_global', 0)
+call ale#Set('javascript_prettier_eslint_options', '')
function! ale#handlers#prettier_eslint#GetExecutable(buffer) abort
return ale#node#FindExecutable(a:buffer, 'javascript_prettier_eslint', [