Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.webc does not work with prettier #88

Open
iamdench opened this issue Aug 18, 2023 · 1 comment
Open

.webc does not work with prettier #88

iamdench opened this issue Aug 18, 2023 · 1 comment

Comments

@iamdench
Copy link

iamdench commented Aug 18, 2023

Hello, I like prettier and i want to use it not only with ".html" but also with ".webc".
But now I have this problem:
image

My versions of devDependencies:

    "@11ty/eleventy": "2.0.1",
    "@11ty/eleventy-plugin-webc": "0.11.1",
    "prettier": "2.5.1"

My .prettierrc.json:

{
  "overrides": [
    {
      "files": "*.webc",
      "options": {
        "parser": "html"
      }
    }
  ]
}

Can I solve this problem?

@georgedoescode
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants