mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-09 22:14:44 +08:00
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:
@@ -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',
|
||||
\ ]
|
||||
|
||||
Reference in New Issue
Block a user