Skip to content
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

challenge(formatter): sloppy mode tests #801

Merged
merged 1 commit into from Nov 20, 2023

Conversation

victor-teles
Copy link
Contributor

@victor-teles victor-teles commented Nov 20, 2023

Summary

fixes

  • js/identifier/parentheses/const.js
  • js/sloppy-mode/function-declaration-in-if.js
  • js/with/indent.js

For some cases we need to run the test using ModuleKind::Script.
I've added a allowlist to allow tests from prettier that need to run in sloppy mode.

Test Plan

Updated snapshots

@github-actions github-actions bot added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages labels Nov 20, 2023
@victor-teles victor-teles force-pushed the fix/sloppy-mode branch 3 times, most recently from e442625 to db4d812 Compare November 20, 2023 04:22
Copy link
Member

@Conaclos Conaclos left a comment

Choose a reason for hiding this comment

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

Looks good to me ad discussed on Discord. I left a suggestion :)

@victor-teles victor-teles merged commit 1c784ca into biomejs:main Nov 20, 2023
12 checks passed
@victor-teles victor-teles deleted the fix/sloppy-mode branch November 20, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants