github biomejs/biome js-api/v0.6.2
JavaScript APIs v0.6.2

3 days ago

CLI

Bug fixes

  • Fix #3104 by suppressing node warnings when using biome migrate. Contributed by @SuperchupuDev

  • Force colors to be off when using the GitHub reporter to properly create annotations in GitHub actions (#3148). Contributed by @Sec-ant

Parser

Bug fixes

Formatter

Bug fixes

Linter

New features

Bug fixes

  • useConsistentArrayType and useShorthandArrayType now ignore Array in the extends and implements clauses. Fix #3247. Contributed by @Conaclos
  • Fixes #3066 by taking into account the dependencies declared in the package.json. Contributed by @ematipico
  • The code action of the useArrowFunction rule now preserves a trailing comma when there is only a single type parameter in the arrow function and JSX is enabled. Fixes #3292. Contributed by @Sec-ant

Enhancements

  • Enhance tailwind sorting lint rule #1274 with variant support.

    Every preconfigured variant is assigned a weight that concurs on establishing the output sorting order.
    Since nesting variants on the same utility class is possible, the resulting weight is the Bitwise XOR of all the variants weight for that class.
    Dynamic variants (e.g. has-[.custom-class], group-[:checked]) are also supported and they take the weight of their base variant name the custom value attached (e.g. has-[.custom-class] takes has weight).
    Arbitrary variants (e.g. [&nth-child(2)]) don't have a weight assigned and they are placed after every known variant.
    Classes with the same amount of arbitrary variants follow lexicographical order. The class that has the highest number of nested arbitrary variants is placed last.
    Screen variants (e.g. sm:, max-md:, min-lg:) are not supported yet.

    Contributed by @lutaok

What's Changed

Other changes

  • feat(workspace): adds GraphQL parsing capabilities via feature by @ematipico in #3238
  • feat(editorconfig): expand unknown globs into known globs by @dyc3 in #3218
  • chore(core): implement pull_diagnostics for graphql by @ematipico in #3248
  • chore(linter): add a rule source of noUnknownProperty by @togami2864 in #3252
  • feat: tailwind variant sorting by @lutaok in #3208
  • test(parse/json): add test for bug where overrides erroneously override special parsing options by @dyc3 in #3260
  • docs(analyzer): improve contributing guide for rules with multiple signals by @minht11 in #3245
  • chore(lint): initialise biome_graphql_analyze by @ematipico in #3276
  • chore(deps): update @biomejs packages by @renovate in #3266
  • docs(useNamingConvention): add examples and improve explanations by @Conaclos in #3277
  • refactor(parse/json): change fields in JsonParserSettings to Option by @dyc3 in #3272
  • feat(search-output-formatter): initialize search output formatter by @BackupMiles in #3258
  • chore(grit): implement node-like compilers + fixes by @arendjr in #3253
  • feat: enable linting for graphql by @ematipico in #3295
  • refactor(parse/css): change fields in CssParserSettings to Option by @dyc3 in #3273
  • refactor: add variables to format strings directly by @hamirmahal in #3299
  • chore: update codegen to include GraphQL by @ematipico in #3301

New Contributors

Full Changelog: cli/v1.8.2...js-api/v0.6.2

Don't miss a new biome release

NewReleases is sending notifications on new releases.