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,10 +160,8 @@ if !exists('g:formatdef_standard_javascript')
endif
if !exists('g:formatdef_prettier_javascript')
if filereadable('.prettierrc')
let g:formatdef_prettier_javascript = '"prettier"'
endif
endif
" This is an xo formatter (inspired by the above eslint formatter)
" To support ignore and overrides options, we need to use a tmp file