prettier / prettier/plugin-php

Add option to automatically ignore files with inline HTML

Open
#1,929 6 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.