Add specific files to prettier glob pattern

已回答

I have a manual prettier configuration for these files: 

{**/*,*}.{js,ts,jsx,tsx,vue,astro,json}

This work fine but leaves out some files like .prettierrc. I also want these kind of (hidden) files to be formatted with prettier. 

So I had all kind of variations like: 

{**/*,*}.{js,ts,jsx,tsx,vue,astro,json, prettierrc}
{**/*,*}.{js,ts,jsx,tsx,vue,astro,json}, .prettierrc
{**/*,*}.{js,ts,jsx,tsx,vue,astro,json}, prettierrc
'{**/*,*}.{js,ts,jsx,tsx,vue,astro,json}', 'prettierrc'
{**/*,*}.{js,ts,jsx,tsx,vue,astro,json}, '.prettierrc

however, these patterns seems to be illegal because after I changed the settings, none of the formatting worked anymore as expected. 

What is the correct glob pattern to use? 

 



{**/*,*}.{js,ts,jsx,tsx,vue,astro,json}

0

There is no way to do this currently, please vote for WEB-52968 to get notified on any progress with this request

0

请先登录再写评论。