Skip to content
verdict:

Biome 2.3.7

digest

note: no summary for this digest release

Digest releases are listed without a summary. The original release notes for this version are below.

release-notesgithub.com/biomejs/biome · 161 lines
  1. ## 2.3.7
  2. ### Patch Changes
  3. - [#8169](https://github.com/biomejs/biome/pull/8169) [`7fdcec8`](https://github.com/biomejs/biome/commit/7fdcec8eb4ce9f28784f823ef01bd923d2c5d1cb) Thanks [@arendjr](https://github.com/arendjr)! - Fixed [#7999](https://github.com/biomejs/biome/issues/7999): Correctly place `await` after leading comment in auto-fix action from `noFloatingPromises` rule.
  4. - [#8157](https://github.com/biomejs/biome/pull/8157) [`12d5b42`](https://github.com/biomejs/biome/commit/12d5b422e388a3f5a906930f2cf04b6835c05258) Thanks [@Conaclos](https://github.com/Conaclos)! - Fixed [#8148](https://github.com/biomejs/biome/issues/8148). [`noInvalidUseBeforeDeclaration`](https://biomejs.dev/linter/rules/no-invalid-use-before-declaration/) no longer reports some valid use before declarations.
  5. The following code is no longer reported as invalid:
  6. ```ts
  7. class classA {
  8. C = C;
  9. }
  10. const C = 0;
  11. ```
  12. - [#8178](https://github.com/biomejs/biome/pull/8178) [`6ba4157`](https://github.com/biomejs/biome/commit/6ba41570e088765cab5b7075f55335296a005c94) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#8174](https://github.com/biomejs/biome/issues/8174), where the HTML parser would parse 2 directives as a single directive because it would not reject whitespace in Vue directives. This would cause the formatter to erroneously merge the 2 directives into one, resulting in broken code.
  13. ```diff
  14. - <Component v-else:property="123" />
  15. + <Component v-else :property="123" />
  16. ```
  17. - [#8088](https://github.com/biomejs/biome/pull/8088) [`0eb08e8`](https://github.com/biomejs/biome/commit/0eb08e8e34f96b5a4fd8cc67f430b614736b6d4c) Thanks [@db295](https://github.com/db295)! - Fixed [#7876](https://github.com/biomejs/biome/issues/7876): The [`noUnusedImports`](https://biomejs.dev/linter/rules/no-unused-imports/) rule now ignores imports that are used by @linkcode and @linkplain (previously supported @link and @see).
  18. The following code will no longer be a false positive:
  19. ```js
  20. import type { a } from "a"
  21. /**
  22. * {@linkcode a}
  23. */
  24. function func() {}
  25. ```
  26. - [#8119](https://github.com/biomejs/biome/pull/8119) [`8d64655`](https://github.com/biomejs/biome/commit/8d6465554ef9cd97f017102892f948593b0f26f1) Thanks [@ematipico](https://github.com/ematipico)! - Improved the detection of the rule `noUnnecessaryConditions`. Now the rule isn't triggered for variables that are mutated inside a module.
  27. This logic deviates from the original rule, hence `noUnnecessaryConditions` is now marked as "inspired".
  28. In the following example, `hey` starts as `false`, but then it's assigned to a string. The rule isn't triggered inside the `if` check.
  29. ```js
  30. let hey = false;
  31. function test() {
  32. hey = "string";
  33. }
  34. if (hey) {
  35. }
  36. ```
  37. - [#8149](https://github.com/biomejs/biome/pull/8149) [`e0a02bf`](https://github.com/biomejs/biome/commit/e0a02bf2cda1b7d32a1ce756d2c8b7883a320488) Thanks [@Netail](https://github.com/Netail)! - Fixed [#8144](https://github.com/biomejs/biome/issues/8144): Improve [`noSyncScripts`](https://biomejs.dev/linter/rules/no-sync-scripts), ignore script tags with `type="module"` as these are always non-blocking.
  38. - [#8182](https://github.com/biomejs/biome/pull/8182) [`e9f068e`](https://github.com/biomejs/biome/commit/e9f068ece0db13fc37d19d1db7e43d7643b9209f) Thanks [@hirokiokada77](https://github.com/hirokiokada77)! - Fixed [#7877](https://github.com/biomejs/biome/issues/7877): Range suppressions now handle suppressed categories properly.
  39. **Valid:**
  40. ```js
  41. // biome-ignore-start lint: explanation
  42. const foo = 1;
  43. // biome-ignore-end lint: explanation
  44. ```
  45. - [#8111](https://github.com/biomejs/biome/pull/8111) [`bf1a836`](https://github.com/biomejs/biome/commit/bf1a8364a7191b8180c4dc3e61f1287e1058e1ec) Thanks [@ryan-m-walker](https://github.com/ryan-m-walker)! - Added support for parsing and formatting the [CSS if function](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/if).
  46. **_Example_**
  47. ```css
  48. .basic-style {
  49. color: if(style(--scheme: dark): #eeeeee; else: #000000;);
  50. }
  51. ```
  52. - [#8173](https://github.com/biomejs/biome/pull/8173) [`7fc07c1`](https://github.com/biomejs/biome/commit/7fc07c12abe755cb813b188f5c821d356c2c67c9) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#8138](https://github.com/biomejs/biome/issues/8138) by reverting an internal refactor that caused a regression to the rule `noUnusedPrivateClassMembers`.
  53. - [#8119](https://github.com/biomejs/biome/pull/8119) [`8d64655`](https://github.com/biomejs/biome/commit/8d6465554ef9cd97f017102892f948593b0f26f1) Thanks [@ematipico](https://github.com/ematipico)! - Improved the type inference engine, by resolving types for variables that are assigned to multiple values.
  54. - [#8158](https://github.com/biomejs/biome/pull/8158) [`fb1458b`](https://github.com/biomejs/biome/commit/fb1458b33c1e871ae129e14cf23d76391129eb8d) Thanks [@dyc3](https://github.com/dyc3)! - Added the `useVueValidVText` lint rule to enforce valid `v-text` directives. The rule reports when `v-text` has an argument, has modifiers, or is missing a value.
  55. Invalid:
  56. ```vue
  57. <div v-text />
  58. <!-- missing value -->
  59. <div v-text:aaa="foo" />
  60. <!-- has argument -->
  61. <div v-text.bbb="foo" />
  62. <!-- has modifier -->
  63. ```
  64. - [#8158](https://github.com/biomejs/biome/pull/8158) [`fb1458b`](https://github.com/biomejs/biome/commit/fb1458b33c1e871ae129e14cf23d76391129eb8d) Thanks [@dyc3](https://github.com/dyc3)! - Fixed `useVueValidVHtml` so that it will now flag empty strings, e.g. `v-html=""`
  65. - [#7078](https://github.com/biomejs/biome/pull/7078) [`bb7a15c`](https://github.com/biomejs/biome/commit/bb7a15c3d8fba790ef6f32f070dff1d719c18c33) Thanks [@emilyinure](https://github.com/emilyinure)! - Fixed [#6675](https://github.com/biomejs/biome/issues/6675): Now only flags
  66. noAccumulatingSpread on Object.assign when a new object is being allocated on
  67. each iteration. Before, all cases using Object.assign with reduce parameters
  68. were warned despite not making new allocations.
  69. The following code will no longer be a false positive:
  70. ```js
  71. foo.reduce((acc, bar) => Object.assign(acc, bar), {});
  72. ```
  73. The following cases which **do** make new allocations will continue to warn:
  74. ```js
  75. foo.reduce((acc, bar) => Object.assign({}, acc, bar), {});
  76. ```
  77. - [#8175](https://github.com/biomejs/biome/pull/8175) [`0c8349e`](https://github.com/biomejs/biome/commit/0c8349e6869a5bc8fafdbf23f95dcee5b56c738e) Thanks [@ryan-m-walker](https://github.com/ryan-m-walker)! - Fixed CSS formatting of dimension units to use correct casing for `Q`, `Hz` and `kHz`.
  78. **Before:**
  79. ```css
  80. .cssUnits {
  81. a: 1Q;
  82. b: 1Hz;
  83. c: 1kHz;
  84. }
  85. ```
  86. **After:**
  87. ```css
  88. .cssUnits {
  89. a: 1Q;
  90. b: 1Hz;
  91. c: 1kHz;
  92. }
  93. ```
  94. ## What's Changed
  95. * chore: remove gold sponsor by @ematipico in https://github.com/biomejs/biome/pull/8135
  96. * fix: next namespace by @Netail in https://github.com/biomejs/biome/pull/8142
  97. * fix(schema): domains and feature kind by @ematipico in https://github.com/biomejs/biome/pull/8147
  98. * docs(lint/html): fix some html rule docs that mess up markdown rendering on the website by @dyc3 in https://github.com/biomejs/biome/pull/8154
  99. * fix(noInvalidUseBeforeDeclaration): ignore valid use before declarations by @Conaclos in https://github.com/biomejs/biome/pull/8157
  100. * fix: noSyncScripts type="module" by @Netail in https://github.com/biomejs/biome/pull/8149
  101. * feat(css): add support for parsing and formatting the CSS if function by @ryan-m-walker in https://github.com/biomejs/biome/pull/8111
  102. * chore: add regex globals by @arendjr in https://github.com/biomejs/biome/pull/8166
  103. * ci: triggers for github merge queue by @dyc3 in https://github.com/biomejs/biome/pull/8168
  104. * fix: correctly place await after comment by @arendjr in https://github.com/biomejs/biome/pull/8169
  105. * fix(noUnusedImports): parse also linkcode, and not only link by @db295 in https://github.com/biomejs/biome/pull/8088
  106. * fix(inference): improved inference for assignment types by @ematipico in https://github.com/biomejs/biome/pull/8119
  107. * feat(lint/html/vue): add `useVueValidVText` by @dyc3 in https://github.com/biomejs/biome/pull/8158
  108. * fix(css): updating formatting of non-lowercase CSS dimension units by @ryan-m-walker in https://github.com/biomejs/biome/pull/8175
  109. * fix(parse/html/vue): reject whitespace before vue directive arguments by @dyc3 in https://github.com/biomejs/biome/pull/8178
  110. * fix(biome_analyze): handle suppressed categories properly for range suppressions by @hirokiokada77 in https://github.com/biomejs/biome/pull/8182
  111. * fix: only flag object assign in accumulators, if it is allocating a new object for each iter by @emilyinure in https://github.com/biomejs/biome/pull/7078
  112. * fix: revert #7684 by @ematipico in https://github.com/biomejs/biome/pull/8173
  113. * ci: release by @github-actions[bot] in https://github.com/biomejs/biome/pull/8161
  114. ## New Contributors
  115. * @db295 made their first contribution in https://github.com/biomejs/biome/pull/8088
  116. **Full Changelog**: https://github.com/biomejs/biome/compare/@biomejs/biome@2.3.6...@biomejs/biome@2.3.7

view on githubimported 2026-09-28 via npm