Open iamdench opened 1 year ago
I know this isn't a direct solution to your problem, but, if you happen to use VSCode...
Try adding:
"files.associations": {
"*.webc": "html"
}
To your .vscode/settings.json
(or wherever you store your config!)
This should hopefully make Prettier play nicely with .webc
files.
I imagine a similar approach may work for other editors, but I couldn't say for sure!
Running prettier with the CLI argument --parser html
works for me. E.g.
npx prettier --parser html src/index.webc
For anyone using neovim, there is an excellent universal formatter plugin, conform
, that automates this using the following config:
require("conform").formatters.prettier = {
options = {
ext_parsers = {
webc = "html",
},
},
}
Hello, I like prettier and i want to use it not only with ".html" but also with ".webc". But now I have this problem:
My versions of devDependencies:
My .prettierrc.json:
Can I solve this problem?