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
|
endif
|
||||||
|
|
||||||
if !exists('g:formatdef_prettier_javascript')
|
if !exists('g:formatdef_prettier_javascript')
|
||||||
if filereadable('.prettierrc')
|
|
||||||
let g:formatdef_prettier_javascript = '"prettier"'
|
let g:formatdef_prettier_javascript = '"prettier"'
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
" This is an xo formatter (inspired by the above eslint formatter)
|
" This is an xo formatter (inspired by the above eslint formatter)
|
||||||
" To support ignore and overrides options, we need to use a tmp file
|
" To support ignore and overrides options, we need to use a tmp file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user