prettier icon indicating copy to clipboard operation
prettier copied to clipboard

Enable `errorOnUnknownASTType: true` for typescript parser

Open fisker opened this issue 6 months ago • 2 comments

Description

We already enable jsDocParsingMode: 'none', I think TSJSDoc* is not possible now, enable errorOnUnknownASTType: true to make sure the parser throws for unknown node types.

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.

fisker avatar May 24 '25 17:05 fisker

Open in StackBlitz

yarn add https://pkg.pr.new/prettier/prettier/@prettier/[email protected]
yarn add https://pkg.pr.new/prettier/prettier/@prettier/[email protected]
yarn add https://pkg.pr.new/prettier/[email protected]

commit: fb588f6

pkg-pr-new[bot] avatar May 24 '25 17:05 pkg-pr-new[bot]

Deploy Preview for prettier ready!

Name Link
Latest commit fb588f6a5299dafe98a20f1e4132c1b03dc8c443
Latest deploy log https://app.netlify.com/projects/prettier/deploys/69276ceaef2b5100089c4bb9
Deploy Preview https://deploy-preview-17511--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.

netlify[bot] avatar May 24 '25 17:05 netlify[bot]