Skip to content

Ignore strict errors by @babel/parser #11778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 8, 2021

Conversation

sosukesuzuki
Copy link
Member

@sosukesuzuki sosukesuzuki commented Nov 7, 2021

Description

Fixes #11753
Fixes #11754
Fixes #11755
Fixes #11756
Fixes #11758

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

Sorry, something went wrong.

@sosukesuzuki sosukesuzuki requested a review from fisker November 7, 2021 18:35
@@ -1,4 +1,4 @@
#### Fix errors on deleting variables (#11750 by @fisker)
#### Ignore errors for non-strict mode features (#11750 by @fisker, #11778 by @sosukesuzuki)
Copy link
Member Author

Choose a reason for hiding this comment

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

these features are not important so I think we don't need to add more code examples.

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#### Ignore errors for non-strict mode features (#11750 by @fisker, #11778 by @sosukesuzuki)
#### Ignore errors for sloppy mode syntax (#11750 by @fisker, #11778 by @sosukesuzuki)

@fisker
Copy link
Member

fisker commented Nov 8, 2021

Are you sure this fixes #11777?

@@ -0,0 +1 @@
foo: function bar() {}
Copy link
Member

@fisker fisker Nov 8, 2021

Choose a reason for hiding this comment

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

Let's name this file as labeled-function-declaration.js ? Or just labeled-function.js

Copy link
Member Author

Choose a reason for hiding this comment

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

labeled-function-declaration.js sounds good

@sosukesuzuki
Copy link
Member Author

Are you sure this fixes #11777?

Woops. No. I mistook via GitHub Autocomplete.

@sosukesuzuki sosukesuzuki merged commit 6a09950 into prettier:main Nov 8, 2021
@sosukesuzuki sosukesuzuki deleted the ignore-strict-errors branch November 8, 2021 06:14
@sosukesuzuki
Copy link
Member Author

Wooooops, sorry I missed your suggestion..

@fisker
Copy link
Member

fisker commented Nov 8, 2021

You didn't, I added it few secondes ago.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.