Skip to content

feat: support opt-in Angular template literals via /* Angular */ - #1

Merged
splincode merged 1 commit into
mainfrom
feat/angular-comment-plugin
Oct 18, 2026
Merged

splincode merged 1 commit into
mainfrom
feat/angular-comment-plugin

Conversation

@splincode

Copy link
Copy Markdown
Member

Summary

Introduce prettier-plugin-angular-comment as an independent Prettier 3 plugin following prettier/prettier#20317, without modifying Prettier core.

  • Opt-in /* Angular */ marker on JS/TS template literals
  • Delegates to the built-in Angular parser and preserves ${...} JS interpolations
  • Delegates all other embed handling to the standard Prettier printer
  • Tests for Babel, TypeScript, control flow, idempotency, opt-out and compatibility
  • npm package metadata, README, CI, and tag-triggered OIDC npm publishing workflow

Release readiness

  • CI passes on Node 22 and 24
  • npm pack --dry-run passes
  • First npm package version is published by an npm package owner
  • npm Trusted Publisher configured to Angular-RU/prettier-plugin-angular-comment / publish.yml

The package has not yet been published. Do not tag a release until CI and npm ownership/bootstrap have been verified.

Related to prettier/prettier#17615.

@splincode
splincode merged commit 8cdb97e into main Oct 18, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant