11ty / 11ty/webc

Prettier Configuration

Open
#234 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.4k
Forks
46
Avg merge
10m
Merged PRs (30d)
2

Description

I've got prettier set up to lint my .webc files in my own project using this configuration

.prettierrc.json

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

We could make this easier for folks to get set up with, maybe in one of these ways:

  1. Contribute this to the Prettier project as a default setting?
  2. Automatically add this to prettier config for new projects?
  3. Add instructions to the documentation website for webc with this as a setup tip?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the proposed .prettierrc.json override and the three suggested approaches. Check the project’s documentation website and existing setup guidance, then determine which approach is accepted and define completion as documenting or implementing one agreed path for formatting .webc files.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.