CLI v1.8.3
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
- Implement CSS unicode range. Contributed by @denbezrukov
Formatter
Bug fixes
- Fix #3184 CSS formatter converts custom identifiers to lowercase. Contributed by @denbezrukov
- Fix #3256 constant crashes when editing css files #3256. Contributed by @denbezrukov
Linter
New features
- Add
nursery/useDeprecatedReason
rule. Contributed by @vohoanglong0107. - Add nursery/noExportedImports. Contributed by @Conaclos
Bug fixes
useConsistentArrayType
anduseShorthandArrayType
now ignoreArray
in theextends
andimplements
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 resultingweight
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 theweight
of their base variant name the custom value attached (e.g.has-[.custom-class]
takeshas
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
toOption
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
toOption
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
- @BackupMiles made their first contribution in #3258
- @hamirmahal made their first contribution in #3299
Full Changelog: cli/v1.8.2...cli/v1.8.3