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

feat(playground): add html formatter options #1741

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

dyc3
Copy link
Contributor

@dyc3 dyc3 commented Feb 14, 2025

Summary

Adds HTML specific formatter options to the playground's settings. I've verified that they get passed into both biome and prettier's configuration. It won't be obvious it's working for biome's formatter because the logic for these options isn't entirely complete in biome.

Caution

This PR is stacked on the following PRs. Do not merge it without merging the others and rebasing this branch. To review this PR, look at the last commit only.

@dyc3 dyc3 marked this pull request as draft February 14, 2025 13:24
Copy link

netlify bot commented Feb 14, 2025

Deploy Preview for biomejs ready!

Name Link
🔨 Latest commit 1298464
🔍 Latest deploy log https://app.netlify.com/sites/biomejs/deploys/67af9dc74b56510008cfeb4e
😎 Deploy Preview https://deploy-preview-1741--biomejs.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 site configuration.

@dyc3 dyc3 force-pushed the playground-html-options branch from fddfd99 to f700783 Compare February 14, 2025 17:53
@dyc3 dyc3 force-pushed the playground-html-options branch from f700783 to 1298464 Compare February 14, 2025 19:47
@dyc3 dyc3 marked this pull request as ready for review February 14, 2025 19:49
@dyc3 dyc3 requested review from a team February 14, 2025 20:42
if (key.startsWith("ruleDomains.")) {
const domain = key.slice("ruleDomains.".length);
const value = searchParams.get(key);
if (value !== null) {
Copy link
Member

Choose a reason for hiding this comment

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

i believe you did this intentionally, but you might be able to simplify it as follows?:

Suggested change
if (value !== null) {
if (value) {

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