CLI v1.7.3
CLI
Bug fixes
-
The stdin-file-path option now works correctly for Astro/Svelte/Vue files (#2686)
Fix #2225 where lint output become empty for Vue files.
Contributed by @tasshi-me
-
biome migrate eslint
now correctly resolve@scope/eslint-config
(#2705). Contributed by @Conaclos
Linter
New features
Bug fixes
-
noBlankTarget no longer hangs when applying a code fix (#2675).
Previously, the following code made Biome hangs when applying a code fix.
<a href="https://example.com" rel="" target="_blank"></a>
Contributed by @Conaclos
-
noRedeclare no longer panics on conditional type (#2659).
This is a regression introduced by #2394.
This regression makesnoRedeclare
panics on every conditional types withinfer
bindings.Contributed by @Conaclos
-
noUnusedLabels and noConfusingLabels now ignore svelte reactive statements (#2571).
The rules now ignore reactive Svelte blocks in Svelte components.
<script> $: { /* reactive block */ } </script>
Contributed by @Conaclos
-
useExportType no longer removes leading comments (#2685).
Previously,
useExportType
removed leading comments when it factorized thetype
qualifier.
It now provides a code fix that preserves the leading comments:- export { + export type { /**leading comment*/ - type T + T }
Contributed by @Conaclos
-
useJsxKeyInIterable no longer reports false positive when iterating on non-jsx items (#2590).
The following snipet of code no longer triggers the rule:
<>{data.reduce((total, next) => total + next, 0)}</>
Contributed by @dyc3
-
Fix typo by renaming
useConsistentBuiltinInstatiation
touseConsistentBuiltinInstantiation
Contributed by @minht11
What's Changed
Other changes
- feat(biome_graphql_parser): parse schema definition by @vohoanglong0107 in #2557
- chore(ci): renovate pin GA to semver by @Sec-ant in #2670
- build(deps): update by @Conaclos in #2669
- build(deps): upgrade indexmap crate by @Conaclos in #2673
- feat(biome_css_analyzer): implement noDuplicateAtImportRules by @DerTimonius in #2658
- feat(biome_css_analyzer): noUnknownSelectorPseudoElement by @keita-hino in #2655
- feat(biome_graphql_parser): implement NthAt for GraphqlLexer by @vohoanglong0107 in #2677
- feat(biome_graphql_parser): parse scalar type definition by @vohoanglong0107 in #2663
- chore: add Grit node compilers by @arendjr in #2689
- chore: upgrade to rust 1.78 by @ematipico in #2691
- feat: parse object type definition by @vohoanglong0107 in #2690
- chore(deps): upgrade oxc_resolver by @ematipico in #2694
- chore: implement Grit node bindings by @arendjr in #2697
- docs: better explanation of the directive
"use strict"
by @ematipico in #2699 - docs: add small note about
process.exit
by @ematipico in #2700 - fix(lint/noDuplicateAtImportRules): correctly handle both single- and double quotes by @DerTimonius in #2707
- feat(biome_graphql_parser): parse interface type definition by @vohoanglong0107 in #2703
- feat(linter): implement
NoUnmatchableAnbSelector
by @togami2864 in #2706 - chore(deps): update rust crate tracing to 0.1.40 by @renovate in #2554
- fix(lint/useJsxKeyInIterable): handle ternaries properly by @dyc3 in #2701
- fix(useExplicitLengthCheck): docs by @Sec-ant in #2735
- chore(deps): update rust crate serde to 1.0.200 by @renovate in #2737
- chore(deps): update github-actions by @renovate in #2740
- chore(deps): update dependency prettier to v3.2.5 by @renovate in #2739
- chore(deps): update pnpm to v8.15.8 by @renovate in #2733
- chore(deps): update @biomejs packages by @renovate in #2732
- chore(deps): update dependency eslint to v9.2.0 by @renovate in #2738
New Contributors
- @dyc3 made their first contribution in #2667
- @tasshi-me made their first contribution in #2686
Full Changelog: cli/v1.7.2...cli/v1.7.3