From a3000143967de397d6f86c31b24f0910206fce1f Mon Sep 17 00:00:00 2001 From: Odin Ugedal Date: Wed, 4 Oct 2017 12:30:42 +0200 Subject: [PATCH] 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. --- autoload/ale/fixers/prettier.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/ale/fixers/prettier.vim b/autoload/ale/fixers/prettier.vim index ca1bf60..4adc3b0 100644 --- a/autoload/ale/fixers/prettier.vim +++ b/autoload/ale/fixers/prettier.vim @@ -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', \ ]