Add all possible config files for prettier

Prettier uses cosmiconfig, and therefore it is possible to add different
extensions to the config file. More information can be found here:
https://github.com/prettier/prettier#configuration-file.
This commit is contained in:
Odin Ugedal 2017-10-04 12:30:42 +02:00
parent 3ab414de1a
commit a300014396
No known key found for this signature in database
GPG Key ID: AFF9C8242CF7A7AF
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ call ale#Set('javascript_prettier_options', '')
function! s:FindConfig(buffer) abort
for l:filename in [
\ '.prettierrc',
\ '.prettierrc.json',
\ '.prettierrc.yaml',
\ '.prettierrc.yml',
\ '.prettierrc.js',
\ 'prettier.config.js',
\ 'package.json',
\ ]