8000 Improve `printDirective` by fisker · Pull Request #18371 · prettier/prettier · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@fisker
Copy link
Member
@fisker fisker commented Nov 29, 2025

Description

Use a regular expression and compare with the most common "use strict".

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

@pkg-pr-new
Copy link
pkg-pr-new bot commented Nov 29, 2025

Open in StackBlitz

yarn add https://pkg.pr.new/prettier/prettier/@prettier/plugin-hermes@18371.tgz
yarn add https://pkg.pr.new/prettier/prettier/@prettier/plugin-oxc@18371.tgz
yarn add https://pkg.pr.new/prettier/prettier@18371.tgz

commit: 2944bd6

@netlify
Copy link
netlify bot commented Nov 29, 2025

Deploy Preview for prettier ready!

Name Link
🔨 Latest commit 2944bd6
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/692acf3834fbf800083a8cb2
😎 Deploy Preview https://deploy-preview-18371--prettier.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@fisker fisker merged commit 36380d9 into prettier:main Nov 30, 2025
35 checks passed
@fisker fisker deleted the directive-print branch November 30, 2025 23:47
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

0