Prettier: don't require a local config.
This commit is contained in:
parent
7a2907b1e1
commit
7d199cd124
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user