You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using prettier to format config/data files (json, xml, etc.) in a DotNet (C#) project. So I decided to create a sub-directory, have package.json and configuration files there, and run prettier --write ../**/*.{json,xml} from the sub-directory.
The problem I'm having is with the xml files. I have installed @prettier/plugin-xml, added this to the config file:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using prettier to format config/data files (
json
,xml
, etc.) in a DotNet (C#) project. So I decided to create a sub-directory, havepackage.json
and configuration files there, and runprettier --write ../**/*.{json,xml}
from the sub-directory.The problem I'm having is with the
xml
files. I have installed@prettier/plugin-xml
, added this to the config file:This works for the
xml
files inside the sub-directory, but does not work forxml
files in the parent directory.Here's the output:
I tried changing
"files": "*.xml"
to"files": "**/*.xml"
and"files": "../**/*.xml"
, but the behavior is the same.What can I do? Is there any workaround?
Beta Was this translation helpful? Give feedback.
All reactions