prettier / prettier/plugin-php
Add option to automatically ignore files with inline HTML
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.9k
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
Would it be practical to add an option to automatically ignore files that contain inline HTML? I usually do this via .prettierignore so I can use prettier on non-templating files, but it’s not possible to do that on many legacy projects.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by locating the plugin's formatter and ignore-related entry points, then review the old discussion to clarify how inline HTML should be detected. Done means files containing inline HTML are automatically skipped while ordinary PHP files continue to be formatted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100