Skip to content

Move ts script check into embed print#14559

Merged
fisker merged 8 commits intoprettier:nextfrom
fisker:isVueSfcWithTypescriptScript
Mar 27, 2023
Merged

Move ts script check into embed print#14559
fisker merged 8 commits intoprettier:nextfrom
fisker:isVueSfcWithTypescriptScript

Conversation

@fisker
Copy link
Copy Markdown
Member

@fisker fisker commented Mar 22, 2023

Description

Avoid mutate options.

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.

Try the playground for this PR

Comment thread src/language-html/embed.js Outdated
import getNodeContent from "./get-node-content.js";

async function printEmbeddedAttributeValue(node, htmlTextToDoc, options) {
const cache = new WeakMap();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cache is too general name. What do you think vueSfcTypescriptScriptCache.

@fisker fisker merged commit bae1eb4 into prettier:next Mar 27, 2023
@fisker fisker deleted the isVueSfcWithTypescriptScript branch March 27, 2023 06:22
medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Feb 13, 2024
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.

2 participants