How would I run `prettier` on file targets other t...
# general
f
How would I run
prettier
on file targets other than JS? Talking about json, css, html, md, yaml. pants decides based on the file types what formatter to run, right? A simple
files
does not do the job I guess.
I see there was a discussion here https://pantsbuild.slack.com/archives/C01CQHVDMMW/p1641335086105300. This looks like I need to write a custom prettier plugin and cannot use the existing one as it is coupled to JS/TS only. I would need to define
MarkdownLanguageFmtTargets
and
YamlLanguageFmtTargets
and whatever else comes to mind. Correct?
h
Currently this is true, and a shame. It would be interesting to write a
prettier
plugin that dispenses with targets altogether and just runs on file inputs (where
::
does file-level globbing)