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

Adjustments for biome CSS support #2259

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Conversation

blutorange
Copy link
Contributor

@blutorange blutorange commented Sep 12, 2024

Biome supports formatting / linting CSS since version 1.8.0, but it requires explicit opt-in. As of 1.9.0, biome formatting support for CSS seems to be stable, not requiring opt-in anymore.

Spotless already supports this as a generic formatting step. I made a few adjustments to make CSS support explicit:

  • Added a note to the readme.
  • Updated the JavaDocs for the Maven / Gradle formatting steps
  • Added a generic CSS step with biome as a formatter

I also added .jsonc (JSON + comments) to the JavaDocs, which was already supported by biome.

After creating the PR, please add a commit that adds a bullet-point under the [Unreleased] section of CHANGES.md, plugin-gradle/CHANGES.md, and plugin-maven/CHANGES.md which includes:

  • a summary of the change
  • either
    • a link to the PR you just created (for big changes likely to have discussion)

If your change only affects a build plugin, and not the lib, then you only need to update the plugin-foo/CHANGES.md for that plugin.

If your change affects lib in an end-user-visible way (fixing a bug, updating a version) then you need to update CHANGES.md for both the lib and all build plugins. Users of a build plugin shouldn't have to refer to lib to see changes that affect them.

This makes it easier for the maintainers to quickly release your changes :)

As of 1.9.0, biome formatting support for CSS is now stable.

Biome now supports formatting / linting CSS. Spotless already supports this as a generic
formatting step. I made a few adjustments to make CSS support explicit:

* Added a note to the readme.
* Updated the JavaDocs for the Maven / Gradle formatting steps
* Added a generic CSS step with biome as a formatter
@nedtwigg nedtwigg merged commit 1108c14 into diffplug:main Sep 23, 2024
16 checks passed
@nedtwigg
Copy link
Member

Released in plugin-gradle 7.0.0.BETA3 and plugin-maven 2.44.0.BETA3.

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.

3 participants