Visitar URL original
Improve babel parse error message by fisker · Pull Request #15928 · prettier/prettier · GitHub
Skip to content

Improve babel parse error message - #15928

Merged
fisker merged 4 commits into
prettier:mainfrom
fisker:babel-plugin
Jan 16, 2024
Merged

fisker merged 4 commits into
prettier:mainfrom
fisker:babel-plugin

Conversation

@fisker

@fisker fisker commented Jan 15, 2024 •

Copy link
Copy Markdown
Member

Description

- This experimental syntax requires enabling one of the following parser plugin(s): "flow", "typescript". (1:8)
+ Unexpected token. (1:8)
  > 1 | export type Foo = number;
      |        ^

Similar to #14398, don't show missing plugin in error message.

Avoid users misleading like #15911

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✨

@fisker
fisker marked this pull request as ready for review January 15, 2024 13:59
@fisker
fisker merged commit 70c9c56 into prettier:main Jan 16, 2024
@fisker
fisker deleted the babel-plugin branch January 16, 2024 02:27
medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Feb 18, 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