Prettier: don't require a local config.

This commit is contained in:
Chiel ten Brinke 2018-05-24 10:24:53 +02:00
parent 7a2907b1e1
commit 7d199cd124

View File

@ -160,9 +160,7 @@ if !exists('g:formatdef_standard_javascript')
endif
if !exists('g:formatdef_prettier_javascript')
if filereadable('.prettierrc')
let g:formatdef_prettier_javascript = '"prettier"'
endif
let g:formatdef_prettier_javascript = '"prettier"'
endif
" This is an xo formatter (inspired by the above eslint formatter)