Merge pull request #885 from morhetz/add-prettier-d-fixer

Add prettier_d fixer path
This commit is contained in:
w0rp 2017-08-29 11:12:23 +01:00 committed by GitHub
commit 87fb72346a

View File

@ -1,5 +1,5 @@
" Author: tunnckoCore (Charlike Mike Reagent) <mameto2011@gmail.com>, " Author: tunnckoCore (Charlike Mike Reagent) <mameto2011@gmail.com>,
" w0rp <devw0rp@gmail.com> " w0rp <devw0rp@gmail.com>, morhetz (Pavel Pertsev) <morhetz@gmail.com>
" Description: Integration of Prettier with ALE. " Description: Integration of Prettier with ALE.
call ale#Set('javascript_prettier_executable', 'prettier') call ale#Set('javascript_prettier_executable', 'prettier')
@ -8,6 +8,7 @@ call ale#Set('javascript_prettier_options', '')
function! ale#fixers#prettier#GetExecutable(buffer) abort function! ale#fixers#prettier#GetExecutable(buffer) abort
return ale#node#FindExecutable(a:buffer, 'javascript_prettier', [ return ale#node#FindExecutable(a:buffer, 'javascript_prettier', [
\ 'node_modules/.bin/prettier_d',
\ 'node_modules/prettier-cli/index.js', \ 'node_modules/prettier-cli/index.js',
\ 'node_modules/.bin/prettier', \ 'node_modules/.bin/prettier',
\]) \])