cli/v1.8.3
版本发布时间: 2024-06-27 22:35:07
biomejs/biome最新发布版本:js-api/v0.7.1(2024-10-02 00:17:16)
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 https://github.com/biomejs/biome/pull/3238
- feat(editorconfig): expand unknown globs into known globs by @dyc3 in https://github.com/biomejs/biome/pull/3218
- chore(core): implement
pull_diagnostics
for graphql by @ematipico in https://github.com/biomejs/biome/pull/3248 - chore(linter): add a rule source of
noUnknownProperty
by @togami2864 in https://github.com/biomejs/biome/pull/3252 - feat: tailwind variant sorting by @lutaok in https://github.com/biomejs/biome/pull/3208
- test(parse/json): add test for bug where overrides erroneously override special parsing options by @dyc3 in https://github.com/biomejs/biome/pull/3260
- docs(analyzer): improve contributing guide for rules with multiple signals by @minht11 in https://github.com/biomejs/biome/pull/3245
- chore(lint): initialise
biome_graphql_analyze
by @ematipico in https://github.com/biomejs/biome/pull/3276 - chore(deps): update @biomejs packages by @renovate in https://github.com/biomejs/biome/pull/3266
- docs(useNamingConvention): add examples and improve explanations by @Conaclos in https://github.com/biomejs/biome/pull/3277
- refactor(parse/json): change fields in
JsonParserSettings
toOption
by @dyc3 in https://github.com/biomejs/biome/pull/3272 - feat(search-output-formatter): initialize search output formatter by @BackupMiles in https://github.com/biomejs/biome/pull/3258
- chore(grit): implement node-like compilers + fixes by @arendjr in https://github.com/biomejs/biome/pull/3253
- feat: enable linting for graphql by @ematipico in https://github.com/biomejs/biome/pull/3295
- refactor(parse/css): change fields in
CssParserSettings
toOption
by @dyc3 in https://github.com/biomejs/biome/pull/3273 - refactor: add variables to format strings directly by @hamirmahal in https://github.com/biomejs/biome/pull/3299
- chore: update codegen to include GraphQL by @ematipico in https://github.com/biomejs/biome/pull/3301
New Contributors
- @BackupMiles made their first contribution in https://github.com/biomejs/biome/pull/3258
- @hamirmahal made their first contribution in https://github.com/biomejs/biome/pull/3299
Full Changelog: https://github.com/biomejs/biome/compare/cli/v1.8.2...cli/v1.8.3
1、 biome-darwin-arm64 20.15MB
2、 biome-darwin-x64 21.69MB
3、 biome-linux-arm64 21.67MB
4、 biome-linux-arm64-musl 19.23MB
5、 biome-linux-x64 24.67MB
6、 biome-linux-x64-musl 23.84MB
7、 biome-win32-arm64.exe 23.12MB
8、 biome-win32-x64.exe 27.66MB