Vai al contenuto
verdict:

Biome 2.6.9

digest

note: la sintesi e le note di rilascio sono in inglese

note: nessuna sintesi per questa release digest

Le release digest sono elencate senza una sintesi. Le note di rilascio originali di questa versione sono qui sotto.

release-notesgithub.com/biomejs/biome · 560 righe
  1. ## 2.6.9
  2. ### Patch Changes
  3. - [#13192](https://github.com/biomejs/biome/pull/13192) [`d9e86ab`](https://github.com/biomejs/biome/commit/d9e86ab4712dccb8b357dcbac886df54a373b2e0) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noArrayDelete`](https://biomejs.dev/linter/rules/no-array-delete/). It reports the `delete` operator used on array elements, which leaves an empty slot in the array instead of removing the element. The rule needs type information, and offers an unsafe fix that replaces the `delete` with a `splice()` call.
  4. ```ts
  5. declare const array: number[];
  6. delete array[0];
  7. ```
  8. - [#13209](https://github.com/biomejs/biome/pull/13209) [`4408dd4`](https://github.com/biomejs/biome/commit/4408dd4ea9ba7937a98506810745d5f14d13df35) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noExpectToHaveBeenCalledOnce`](https://biomejs.dev/linter/rules/no-expect-to-have-been-called-once/), which reports `toHaveBeenCalledOnce()` and `toBeCalledOnce()` assertions and suggests `toHaveBeenCalledTimes(1)` and `toBeCalledTimes(1)` instead. The rule belongs to the `test` domain.
  9. ```js
  10. expect(sendEmail).toHaveBeenCalledOnce();
  11. ```
  12. - [#13217](https://github.com/biomejs/biome/pull/13217) [`c0dc090`](https://github.com/biomejs/biome/commit/c0dc0904a8a46fbb22ed97cb7a6afca505accc03) Thanks [@dyc3](https://github.com/dyc3)! - Added the new nursery rule [`noImmediateMutation`](https://biomejs.dev/linter/rules/no-immediate-mutation/), which reports arrays, objects, `Set`s, and `Map`s that are changed in the statement right after they are created, and variables that are assigned right after they are declared.
  13. ```js
  14. const array = [1, 2];
  15. array.push(3); // reported: write `[1, 2, 3]` instead
  16. let foo;
  17. foo = 1; // reported: write `let foo = 1` instead
  18. ```
  19. - [#13120](https://github.com/biomejs/biome/pull/13120) [`54eb224`](https://github.com/biomejs/biome/commit/54eb22453cfcf704a12658377555fb7f0b9dcb89) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noJasmineGlobals`](https://biomejs.dev/linter/rules/no-jasmine-globals/), which reports Jasmine globals in Jest tests, such as `spyOn()`, `fail()`, `pending()`, and the `jasmine` object. Jest's default test runner doesn't provide them.
  20. ```js
  21. jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000;
  22. ```
  23. - [#13122](https://github.com/biomejs/biome/pull/13122) [`6e2b42e`](https://github.com/biomejs/biome/commit/6e2b42e354c3e6ec31d55498a1118fae63d45ff2) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noReturnInTest`](https://biomejs.dev/linter/rules/no-return-in-test/), which reports `return` statements directly inside the body of a test function. The rule belongs to the `test` domain.
  24. ```js
  25. test("adds two numbers", () => {
  26. return expect(add(1, 2)).toBe(3);
  27. });
  28. ```
  29. - [#13161](https://github.com/biomejs/biome/pull/13161) [`37692e2`](https://github.com/biomejs/biome/commit/37692e2e1bc99350f9cc8561dae265b6ce92d12d) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noTailwindConflictingClasses`](https://biomejs.dev/linter/rules/no-tailwind-conflicting-classes/), which reports Tailwind CSS classes that set the same CSS properties on an element. Only one of the conflicting classes takes effect, so the other one does nothing.
  30. ```jsx
  31. <div className="flex grid" />;
  32. ```
  33. - [#13119](https://github.com/biomejs/biome/pull/13119) [`0cc8548`](https://github.com/biomejs/biome/commit/0cc85487e5180821773912c5b79d5694247b3cbd) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noTestGlobals`](https://biomejs.dev/linter/rules/no-test-globals/), which reports Jest and Vitest APIs that are used as global variables instead of being imported.
  34. ```js
  35. describe("sum", () => {});
  36. ```
  37. - [#13121](https://github.com/biomejs/biome/pull/13121) [`5065890`](https://github.com/biomejs/biome/commit/5065890df8502048307d5da6749095f314b471e6) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noTestHooks`](https://biomejs.dev/linter/rules/no-test-hooks/), which reports setup and teardown hooks in tests, such as `beforeEach` and `afterAll`.
  38. ```js
  39. beforeEach(() => { // reported
  40. cart = createCart();
  41. });
  42. ```
  43. - [#13207](https://github.com/biomejs/biome/pull/13207) [`328be47`](https://github.com/biomejs/biome/commit/328be47bcf2834253ac08cf2f5ea4e22f28f6e20) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noUnsafeSqliteInterpolation`](https://biomejs.dev/linter/rules/no-unsafe-sqlite-interpolation/), which reports SQL strings that insert values with `${}` or use a tagged template when passed to the `exec()` and `prepare()` methods of a `node:sqlite` database.
  44. ```js
  45. import { DatabaseSync } from "node:sqlite";
  46. const database = new DatabaseSync(":memory:");
  47. database.exec(`SELECT * FROM users WHERE id = ${id}`);
  48. ```
  49. - [#12544](https://github.com/biomejs/biome/pull/12544) [`0d70b09`](https://github.com/biomejs/biome/commit/0d70b099ae1884037c16050d8187b3d9e559c583) Thanks [@dyc3](https://github.com/dyc3)! - Added the new nursery rule [`noUselessBind`](https://biomejs.dev/linter/rules/no-useless-bind/), which disallows `.bind()` calls on functions that don't use `this`, and on arrow functions.
  50. ```js
  51. const handler = function () {
  52. console.log("clicked");
  53. }.bind(this); // reported
  54. ```
  55. - [#13216](https://github.com/biomejs/biome/pull/13216) [`a1c2950`](https://github.com/biomejs/biome/commit/a1c2950a3ad7a8dc79fa07d7230ff8b6ca6830fa) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noUselessDefaultAssignment`](https://biomejs.dev/linter/rules/no-useless-default-assignment/), which uses type information to report default values that can never be used, because the value they replace can't be `undefined`.
  56. ```ts
  57. function greet({ name = "friend" }: { name: string }) {} // reported
  58. ```
  59. - [#13101](https://github.com/biomejs/biome/pull/13101) [`981cd33`](https://github.com/biomejs/biome/commit/981cd3341c1780ca54f82cd3f206bc8cf39e5604) Thanks [@dyc3](https://github.com/dyc3)! - Added the new nursery rule [`noUselessNestedTernary`](https://biomejs.dev/linter/rules/no-useless-nested-ternary/), which reports nested ternary expressions that repeat a result of the expression around them. The conditions of such expressions can be combined with `&&` or `||`.
  60. ```js
  61. const result = a ? (b ? c : d) : d;
  62. ```
  63. - [#13100](https://github.com/biomejs/biome/pull/13100) [`8ece6a5`](https://github.com/biomejs/biome/commit/8ece6a5fb61dd3d35f795ebbf625308b06c60897) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noUselessSetConstruction`](https://biomejs.dev/linter/rules/no-useless-set-construction/), which reports a `new Set()` that only copies a value used with a `Set` method such as `union()` or `isSubsetOf()`. These methods accept a `Set` or a `Map` directly, don't change the `Set` they are called on, and return a new `Set` when they combine values.
  64. ```js
  65. const selected = new Set([1, 2]);
  66. const other = new Set([2, 3]);
  67. selected.union(new Set(other));
  68. new Set(selected).union(other);
  69. new Set(selected.union(other));
  70. ```
  71. - [#13164](https://github.com/biomejs/biome/pull/13164) [`dc11dea`](https://github.com/biomejs/biome/commit/dc11deaa4bca032f26bc44e7d59d78aefa157577) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noVueDuplicateVElseIf`](https://biomejs.dev/linter/rules/no-vue-duplicate-v-else-if/), which reports `v-else-if` conditions in Vue templates that repeat, or are covered by, earlier conditions of the same `v-if` / `v-else-if` chain.
  72. For example, the second element below can never be rendered:
  73. ```vue
  74. <template>
  75. <div v-if="a || b" />
  76. <div v-else-if="a" />
  77. </template>
  78. ```
  79. - [#13194](https://github.com/biomejs/biome/pull/13194) [`9bd7f56`](https://github.com/biomejs/biome/commit/9bd7f562525a2382c18bd4a4e6eb5f02d75f7028) Thanks [@dyc3](https://github.com/dyc3)! - Added the new nursery rule [`noVueNegationElse`](https://biomejs.dev/linter/rules/no-vue-negation-else/), which reports a negated condition in `v-if` or `v-else-if` when a `v-else` branch follows it. Its fix removes the negation and swaps the two branches.
  80. ```vue
  81. <template>
  82. <div v-if="!isLoading">Content</div> <!-- reported -->
  83. <div v-else>Loading...</div>
  84. </template>
  85. ```
  86. - [#13271](https://github.com/biomejs/biome/pull/13271) [`31fad4a`](https://github.com/biomejs/biome/commit/31fad4a43a030771baa8599066d7ce1f64452660) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useBiomeKindSets`](https://biomejs.dev/linter/rules/use-biome-kind-sets/), which reports Biome JS plugins that check the `kind` of a node or token against several strings. A kind set created with `nodeKinds()` or `tokenKinds()` reads the kind natively, which is faster.
  87. The rule belongs to the new `biomePlugin` domain. Biome doesn't enable this domain automatically, so enable it in the linter configuration of your plugin project.
  88. ```js
  89. if (node.kind === "JS_CALL_EXPRESSION" || node.kind === "JS_NEW_EXPRESSION") {}
  90. ```
  91. - [#13271](https://github.com/biomejs/biome/pull/13271) [`31fad4a`](https://github.com/biomejs/biome/commit/31fad4a43a030771baa8599066d7ce1f64452660) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useBiomeTopLevelTypes`](https://biomejs.dev/linter/rules/use-biome-top-level-types/), which reports the use of `nodeKinds()`, `tokenKinds()`, or `union()` inside a function. The rule belongs to the `biomePlugin` domain.
  92. ```js
  93. import { defineRule, nodeKinds } from "@biomejs/runtime/plugin";
  94. export const rule = defineRule({
  95. run(node) {
  96. return nodeKinds("JS_CALL_EXPRESSION").has(node);
  97. },
  98. });
  99. ```
  100. - [#13191](https://github.com/biomejs/biome/pull/13191) [`4a21426`](https://github.com/biomejs/biome/commit/4a21426e60a88b77296019cbf0b2630a31ce08a5) Thanks [@dyc3](https://github.com/dyc3)! - Added the new nursery rule [`useConsistentIndexedObjectStyle`](https://biomejs.dev/linter/rules/use-consistent-indexed-object-style/), which requires one style for object types with arbitrary keys. By default, it requires the `Record` type instead of index signatures and mapped types.
  101. ```ts
  102. // reported, prefer `Record<string, number>`
  103. interface Scores {
  104. [name: string]: number;
  105. }
  106. ```
  107. - [#13205](https://github.com/biomejs/biome/pull/13205) [`adde697`](https://github.com/biomejs/biome/commit/adde69705c7e795c358239796b747949236fab87) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useDescribeFunctionTitle`](https://biomejs.dev/linter/rules/use-describe-function-title/), which reports test suites (`describe` blocks) whose title is a string or a `.name` property that repeats the name of an imported value, and suggests passing the value itself as the title.
  108. ```js
  109. import { myFunction } from "./myFunction";
  110. describe("myFunction", () => {}); // reported
  111. ```
  112. - [#13206](https://github.com/biomejs/biome/pull/13206) [`32daef0`](https://github.com/biomejs/biome/commit/32daef0c6ef376ab198688bc9da5fe44096e38cd) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useEarlyContinue`](https://biomejs.dev/linter/rules/use-early-continue/), which reports an `if` statement that wraps the rest of a loop body and suggests skipping the iteration early with `continue` instead.
  113. ```js
  114. for (const item of items) {
  115. if (item.isActive) {
  116. process(item);
  117. save(item);
  118. }
  119. }
  120. ```
  121. - [#13211](https://github.com/biomejs/biome/pull/13211) [`aaf89d6`](https://github.com/biomejs/biome/commit/aaf89d6961645fa3fd474beb67595d1a74ebbc31) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useExpectEqualityMatcher`](https://biomejs.dev/linter/rules/use-expect-equality-matcher/), which reports assertions that compare two values with `===` or `!==` inside `expect()` and check the result against a boolean. Using an equality matcher instead makes failing tests show both values.
  122. ```js
  123. // Invalid
  124. expect(total === 10).toBe(true);
  125. // Valid
  126. expect(total).toBe(10);
  127. ```
  128. - [#13092](https://github.com/biomejs/biome/pull/13092) [`432e8c8`](https://github.com/biomejs/biome/commit/432e8c8ebba29e9a58157f56ac78aa991b0492d9) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useExpectToHaveLength`](https://biomejs.dev/linter/rules/use-expect-to-have-length/), which reports tests that check the `length` property with `toBe()`, `toEqual()`, or `toStrictEqual()`, and suggests using `toHaveLength()` instead.
  129. ```js
  130. expect(files.length).toBe(1);
  131. ```
  132. - [#13091](https://github.com/biomejs/biome/pull/13091) [`6f231d0`](https://github.com/biomejs/biome/commit/6f231d0831f18458801381849ad7ab2e34197304) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useExpectToStrictEqual`](https://biomejs.dev/linter/rules/use-expect-to-strict-equal/), which reports tests that compare values with `toEqual()`, and suggests using `toStrictEqual()` instead. `toEqual()` ignores properties set to `undefined`, so the following test passes even though the two objects are different.
  133. ```js
  134. expect({ a: "a", b: undefined }).toEqual({ a: "a" });
  135. ```
  136. - [#13215](https://github.com/biomejs/biome/pull/13215) [`3677e52`](https://github.com/biomejs/biome/commit/3677e5251e65b5f325292a6970a127e4ca6ff075) Thanks [@dyc3](https://github.com/dyc3)! - Added the new nursery rule [`useTanstackQueryExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-tanstack-query-exhaustive-dependencies/), which reports TanStack Query options whose `queryKey` doesn't include every value that `queryFn` uses. When the key misses a value, changing that value doesn't fetch new data, and the query keeps returning data for the old value.
  137. ```js
  138. function Todo({ todoId }) {
  139. useQuery({
  140. queryKey: ["todo"],
  141. queryFn: () => fetchTodo(todoId),
  142. });
  143. }
  144. ```
  145. - [#13212](https://github.com/biomejs/biome/pull/13212) [`32f5c05`](https://github.com/biomejs/biome/commit/32f5c0529d51d6a729eeb9792726e9b53ff6a94a) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useTanstackQueryMutationPropertyOrder`](https://biomejs.dev/linter/rules/use-tanstack-query-mutation-property-order/), which requires `onMutate` to come before `onError` and `onSettled` in the options of TanStack Query's `useMutation`. The type of the value that `onMutate` returns can be wrong in a property that comes before it.
  146. ```js
  147. import { useMutation } from "@tanstack/react-query";
  148. useMutation({
  149. mutationFn: (todo) => saveTodo(todo),
  150. onError: (error, todo, saved) => restoreTodo(saved.previousTodo),
  151. onMutate: (todo) => ({ previousTodo: readTodo(todo.id) }),
  152. });
  153. ```
  154. - [#13103](https://github.com/biomejs/biome/pull/13103) [`c3f850e`](https://github.com/biomejs/biome/commit/c3f850ed725f285f4ecbddce55037da53e77c6fb) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`useTopLevelDescribe`](https://biomejs.dev/linter/rules/use-top-level-describe/), which reports tests and hooks that are not inside a `describe` block. The `maxTopLevelDescribes` option also limits how many top-level `describe` blocks a file can have.
  155. ```js
  156. test("adds two numbers", () => {});
  157. ```
  158. - [#13344](https://github.com/biomejs/biome/pull/13344) [`60da8a9`](https://github.com/biomejs/biome/commit/60da8a9bf2eebe11c673b9f0c9fdcc61889fa985) Thanks [@Jayllyz](https://github.com/Jayllyz)! - Improved the performance of GritQL plugins on files with many matches. Evaluation time no longer grows quadratically with the number of matches.
  159. - [#13008](https://github.com/biomejs/biome/pull/13008) [`01ce2dd`](https://github.com/biomejs/biome/commit/01ce2dd3d8cf050ac1c1e483d05973a14d1456b1) Thanks [@ematipico](https://github.com/ematipico)! - Improved Astro cross-language JavaScript analysis by resolving embedded bindings and references through Astro scopes instead of document-wide name matching.
  160. - [#13011](https://github.com/biomejs/biome/pull/13011) [`a5aa4f2`](https://github.com/biomejs/biome/commit/a5aa4f234cec4ae43c42be57cda79bd9a60411f4) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#12818](https://github.com/biomejs/biome/issues/12818): [`useFilenamingConvention`](https://biomejs.dev/linter/rules/use-filenaming-convention/) now reports a filename diagnostic once per HTML, Vue, Svelte, or Astro document instead of once per embedded JavaScript snippet.
  161. - [#11372](https://github.com/biomejs/biome/pull/11372) [`6ce9395`](https://github.com/biomejs/biome/commit/6ce93955b1aa4b3acf0798f10542580d74807892) Thanks [@renovate](https://github.com/apps/renovate)! - Improved how Biome aligns edits in diagnostic fix previews. Suggested fixes now group nearby edits more clearly, which can change which repeated lines are shown as unchanged.
  162. - [#13273](https://github.com/biomejs/biome/pull/13273) [`9add717`](https://github.com/biomejs/biome/commit/9add7177802382e2d1afec7698cfe6bf893da9f4) Thanks [@tats-u](https://github.com/tats-u)! - Fixed [#13267](https://github.com/biomejs/biome/issues/13267): `biome migrate prettier` now enables `markdown.parser.frontmatter`, matching Prettier's parsing of YAML frontmatter in Markdown files.
  163. - [#13013](https://github.com/biomejs/biome/pull/13013) [`e2a8e85`](https://github.com/biomejs/biome/commit/e2a8e85d66359cabded2975d5fe4c45f0bf28dd8) Thanks [@ematipico](https://github.com/ematipico)! - Implemented the runtime default-export case from [#11463](https://github.com/biomejs/biome/issues/11463) with the new [`noAstroComponentDefaultExport`](https://biomejs.dev/linter/rules/no-astro-component-default-export/) nursery rule. The rule reports runtime default exports in Astro component frontmatter while allowing named and type-only exports.
  164. ```astro
  165. ---
  166. export default function render() {}
  167. ---
  168. ```
  169. - [#13010](https://github.com/biomejs/biome/pull/13010) [`8bdb36c`](https://github.com/biomejs/biome/commit/8bdb36c19af396cac05154135a87a39699f9ecc7) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#12956](https://github.com/biomejs/biome/issues/12956): [`useImportType`](https://biomejs.dev/linter/rules/use-import-type/) now distinguishes Astro template type and value uses, while [`useConst`](https://biomejs.dev/linter/rules/use-const/) and [`noVar`](https://biomejs.dev/linter/rules/no-var/) account for template writes. Cross-language references now prevent unsafe unused-variable rename suggestions.
  170. - [#13015](https://github.com/biomejs/biome/pull/13015) [`2ec6bbe`](https://github.com/biomejs/biome/commit/2ec6bbe2b26d1abb1d1e37dd770e029f738bb6d0) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#5242](https://github.com/biomejs/biome/issues/5242): the HTML-family formatter now collapses whitespace in static `class` attributes and formats valid `style` attributes as inline CSS declarations. Component props, dynamic Astro template values, and style attributes containing invalid CSS remain conservative. Embedded replacements also recompute parent layout so formatting converges in one pass.
  171. ```diff
  172. -<div class=" card selected " style="color:red;font-size:10px"></div>
  173. +<div class="card selected" style="color: red; font-size: 10px;"></div>
  174. ```
  175. - [#13018](https://github.com/biomejs/biome/pull/13018) [`cfb4467`](https://github.com/biomejs/biome/commit/cfb4467e8e9f6e4f8c5247b81335efb9427c6c6f) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#12956](https://github.com/biomejs/biome/issues/12956): React, React Native, and Next.js rules that rely on framework-specific JSX behavior no longer report Astro template expressions. Mixed-framework projects can enable those rule domains without receiving React- or Next-specific diagnostics for Astro markup such as `<head>`, `<img>`, component `children` props, string refs, Astro list rendering, or Polyfill.io scripts.
  176. - [#12419](https://github.com/biomejs/biome/pull/12419) [`03b0edd`](https://github.com/biomejs/biome/commit/03b0eddf48175b384196717a23a42852bd682a94) Thanks [@vibbix](https://github.com/vibbix)! - Fixed [#9768](https://github.com/biomejs/biome/issues/9768): [`noDescendingSpecificity`](https://biomejs.dev/linter/rules/no-descending-specificity/) no longer reports nested selectors that style different elements. The following code is now valid:
  177. ```scss
  178. .aaa {
  179. ul li {
  180. &:hover { color: #1684fc; }
  181. }
  182. }
  183. .bbb {
  184. a {
  185. &:hover { background: #fff; }
  186. }
  187. }
  188. ```
  189. The rule now reports `a:hover { color: red; }` followed by `a { color: blue; }`, as Stylelint does, and ignores rules without declarations.
  190. - [#13103](https://github.com/biomejs/biome/pull/13103) [`c3f850e`](https://github.com/biomejs/biome/commit/c3f850ed725f285f4ecbddce55037da53e77c6fb) Thanks [@dyc3](https://github.com/dyc3)! - Fixed the detection of `describe` blocks in the test rules [`noIdenticalTestTitle`](https://biomejs.dev/linter/rules/no-identical-test-title/), [`useTestHooksOnTop`](https://biomejs.dev/linter/rules/use-test-hooks-on-top/), and [`useTestHooksInOrder`](https://biomejs.dev/linter/rules/use-test-hooks-in-order/). These rules treated `describe.todo`, `describe.shuffle`, `test.describe.parallel`, and `test.describe.serial` as tests, and they didn't recognize conditional blocks such as `describe.skipIf(condition)("title", () => {})`. As a result, they didn't check the tests and hooks inside those blocks.
  191. For example, `noIdenticalTestTitle` now reports the second test:
  192. ```js
  193. test.describe.serial("checkout", () => {
  194. test("pays", async ({ page }) => {});
  195. test("pays", async ({ page }) => {});
  196. });
  197. ```
  198. The nursery rule [`useValidTestTitle`](https://biomejs.dev/linter/rules/use-valid-test-title/) now also checks the titles of tagged-template tables such as ``test.each`table`("title", () => {})`` and of conditional calls such as `test.skipIf(condition)("title", () => {})`.
  199. - [#12548](https://github.com/biomejs/biome/pull/12548) [`c919f1c`](https://github.com/biomejs/biome/commit/c919f1cbe8949835c6da55f64d1aee2f29c86900) Thanks [@pkallos](https://github.com/pkallos)! - Fixed [`useNullishCoalescing`](https://biomejs.dev/linter/rules/use-nullish-coalescing/) reporting `inert || undefined` when `inert` is destructured with a default value, such as `{ inert = false }`.
  200. - [#12419](https://github.com/biomejs/biome/pull/12419) [`03b0edd`](https://github.com/biomejs/biome/commit/03b0eddf48175b384196717a23a42852bd682a94) Thanks [@vibbix](https://github.com/vibbix)! - Fixed [`noDuplicateSelectors`](https://biomejs.dev/linter/rules/no-duplicate-selectors/) missing some duplicates. The rule now reports these selectors:
  201. ```css
  202. .c:is(.a .b) {}
  203. :is(.a .b).c {}
  204. [data-progress="50%"] {}
  205. [data-progress="50%"] {}
  206. ```
  207. - [#13262](https://github.com/biomejs/biome/pull/13262) [`b359a58`](https://github.com/biomejs/biome/commit/b359a583cc3faca5795fed149d61ff0e6d5173ee) Thanks [@GBra-4-669](https://github.com/GBra-4-669)! - Fixed [#13258](https://github.com/biomejs/biome/issues/13258): the HTML parser no longer panics when a CDATA section starts with a second `<![CDATA[` marker. The marker is kept as literal text.
  208. - [#13301](https://github.com/biomejs/biome/pull/13301) [`d06ae5d`](https://github.com/biomejs/biome/commit/d06ae5dd29bac3dfebf728ed26400d6c44e380e2) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13299](https://github.com/biomejs/biome/issues/13299): the HTML formatter no longer adds a line break between whitespace-sensitive siblings that touch in the source, such as an element next to a self-closing element, a Svelte `{@render}` tag, or a text expression. The line break rendered as a space that wasn't in the source.
  209. ```diff
  210. <p>
  211. - <span class="label">label</span><img src="image.png">
  212. - <span class="hint">hint</span>
  213. + <span class="label">label</span><img src="image.png"><span class="hint"
  214. + >hint</span
  215. + >
  216. </p>
  217. ```
  218. - [#13180](https://github.com/biomejs/biome/pull/13180) [`ee7e535`](https://github.com/biomejs/biome/commit/ee7e535d7520a43268d25cdb13bc449e052a03e2) Thanks [@GBra-4-669](https://github.com/GBra-4-669)! - Fixed [#13178](https://github.com/biomejs/biome/issues/13178): the JS parser no longer panics on `import.defer` or `import.source` when either is parsed as an expression without a following parenthesized argument list. It reports a syntax error instead.
  219. - [#13269](https://github.com/biomejs/biome/pull/13269) [`b6e7d37`](https://github.com/biomejs/biome/commit/b6e7d37e3070d59da103e05bd7ac1d5e0f19d870) Thanks [@andrew-hesse](https://github.com/andrew-hesse)! - Fixed [#13268](https://github.com/biomejs/biome/issues/13268): the Markdown formatter no longer pairs emphasis markers across paragraphs of a blockquote.
  220. ```diff
  221. -> a _**, b
  222. +> a ___, b
  223. >
  224. -> c 20**.
  225. +> c 20__.
  226. ```
  227. - [#13372](https://github.com/biomejs/biome/pull/13372) [`399f3a1`](https://github.com/biomejs/biome/commit/399f3a1e5d41abfa1e555637acc89c502629e34f) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13334](https://github.com/biomejs/biome/issues/13334): the Markdown formatter now uses `indentWidth` to indent the content of list items, as Prettier does with `tabWidth`. Some content keeps its current alignment, such as blockquotes, HTML blocks, and lists inside blockquotes.
  228. With `indentWidth` set to `4`:
  229. ```diff
  230. - parent
  231. - second paragraph
  232. - - child
  233. + second paragraph
  234. + - child
  235. ```
  236. - [#13083](https://github.com/biomejs/biome/pull/13083) [`a0acfd5`](https://github.com/biomejs/biome/commit/a0acfd55a0b94d6f63547e20349dacc22e88aabb) Thanks [@jfmcdowell](https://github.com/jfmcdowell)! - Fixed a Markdown parser hang on block quote lines that contain only spaces after the `>`. For example, Biome no longer hangs when the second line below has two or more spaces after the `>`:
  237. ```md
  238. - > - a
  239. >
  240. ```
  241. - [#13375](https://github.com/biomejs/biome/pull/13375) [`70d6154`](https://github.com/biomejs/biome/commit/70d61546055b68acefb43fa7b9d505d52825056b) Thanks [@garysassano](https://github.com/garysassano)! - Fixed the HTML formatter adding a line break between a Svelte block (`{#if}`, `{#each}`, `{#await}`, `{#key}`, `{#snippet}`) or tag (`{@const}`, `{let}`, `{@debug}`) and a sibling that touches it in the source. Svelte keeps that line break as a text node, so the page rendered a space that wasn't in the source.
  242. ```diff
  243. <p>
  244. - Total:
  245. - {#each items as item}
  246. + Total:{#each items as item}
  247. <b>{item}</b>
  248. - {/each}
  249. - .
  250. + {/each}.
  251. </p>
  252. ```
  253. - [#13012](https://github.com/biomejs/biome/pull/13012) [`ef2d71a`](https://github.com/biomejs/biome/commit/ef2d71a585267984babd7f6fea50567614a0d2fc) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#12707](https://github.com/biomejs/biome/issues/12707): [`useValidAriaValues`](https://biomejs.dev/linter/rules/use-valid-aria-values/) no longer reports Astro template-literal attributes that contain substitutions because their runtime value is unknown. Static template-literal attributes remain checked.
  254. - [#13184](https://github.com/biomejs/biome/pull/13184) [`3f72ebe`](https://github.com/biomejs/biome/commit/3f72ebedcfbfcdc939c522f02829ad2a21ab8e30) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [`noFloatingPromises`](https://biomejs.dev/linter/rules/no-floating-promises/), which now detects unhandled promises returned through generic class methods, such as `factory.create<Promise<void>>()`.
  255. - [#13342](https://github.com/biomejs/biome/pull/13342) [`eb51fdb`](https://github.com/biomejs/biome/commit/eb51fdb2c5f49a4ac05ebeb3fb225507a309463b) Thanks [@Jayllyz](https://github.com/Jayllyz)! - Improved the performance of GritQL plugins, especially for plugins that report many matches in large files.
  256. - [#13009](https://github.com/biomejs/biome/pull/13009) [`4ea9690`](https://github.com/biomejs/biome/commit/4ea969043489423eef01e15df00d431ba8aa8b6f) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#12956](https://github.com/biomejs/biome/issues/12956): [`noUndeclaredVariables`](https://biomejs.dev/linter/rules/no-undeclared-variables/) now respects Astro server and client scopes, `define:vars`, and type/value namespaces. [`noUnusedVariables`](https://biomejs.dev/linter/rules/no-unused-variables/), [`noUnusedImports`](https://biomejs.dev/linter/rules/no-unused-imports/), and [`noUnusedFunctionParameters`](https://biomejs.dev/linter/rules/no-unused-function-parameters/) now follow resolved Astro symbols and treat write-only template references as unused.
  257. - [#13193](https://github.com/biomejs/biome/pull/13193) [`f0e63ff`](https://github.com/biomejs/biome/commit/f0e63ffb05da280a7f7efe7c0118074d0e0f0628) Thanks [@dyc3](https://github.com/dyc3)! - Improved performance of all parsers. On large projects, `biome lint` is up to 1.7% faster.
  258. - [#13016](https://github.com/biomejs/biome/pull/13016) [`5d4d474`](https://github.com/biomejs/biome/commit/5d4d4745a4b6815f0a5d69e3e805af7ba7214725) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#12956](https://github.com/biomejs/biome/issues/12956): Biome now leaves the contents of unsupported `<script>` and `<style>` blocks unchanged instead of trying to format them as JavaScript or CSS. This includes embedded languages such as Less, SCSS, PostCSS, CoffeeScript, and custom `lang` or `type` values.
  259. ```astro
  260. <style lang="less">
  261. @color: red;
  262. .card { color: @color; }
  263. </style>
  264. <script lang="coffee">
  265. square = (value) -> value * value
  266. </script>
  267. ```
  268. Malformed Astro frontmatter, expressions, scripts, and styles also retain their original text while Biome formats the surrounding markup.
  269. - [#13208](https://github.com/biomejs/biome/pull/13208) [`c4d56be`](https://github.com/biomejs/biome/commit/c4d56be36cbfc738a13d076422a353386e1c299e) Thanks [@dyc3](https://github.com/dyc3)! - Added the nursery rule [`noCanvasToImage`](https://biomejs.dev/linter/rules/no-canvas-to-image/), which reports canvases that are converted to an image or copied pixel by pixel only to be drawn onto another canvas. Pass the canvas to `drawImage()` instead.
  270. ```js
  271. const image = await loadImage(canvas.toDataURL());
  272. context.drawImage(image, 0, 0);
  273. ```
  274. - [#13195](https://github.com/biomejs/biome/pull/13195) [`f126262`](https://github.com/biomejs/biome/commit/f12626245291452e13941783ced3225e5f646f12) Thanks [@dyc3](https://github.com/dyc3)! - Added trivia APIs to JavaScript plugins. `leadingTrivia()` and `trailingTrivia()` on nodes and tokens return the whitespace, line breaks, and comments around them, and `leadingComments()` and `trailingComments()` on tokens return only the comments. Each piece has an `isComment()` method. `registerDiagnostic()` now also accepts tokens and trivia pieces, and highlights only that element.
  275. ```js
  276. const keyword = statement.declaration.token("kindToken");
  277. for (const comment of keyword.leadingComments()) {
  278. if (comment.text.includes("TODO")) {
  279. registerDiagnostic(comment, "warning", "Resolve this TODO.");
  280. }
  281. }
  282. ```
  283. - [#12962](https://github.com/biomejs/biome/pull/12962) [`2ae8b51`](https://github.com/biomejs/biome/commit/2ae8b516203aba18af4855a09cf8a752e3fa9189) Thanks [@dyc3](https://github.com/dyc3)! - Improved the performance of linting with many rules enabled, such as Biome's recommended rules. In exchange, Biome can use more memory, because each thread now keeps some freed memory for reuse.
  284. - [#12937](https://github.com/biomejs/biome/pull/12937) [`4dc698a`](https://github.com/biomejs/biome/commit/4dc698a18bc995c610ed4946e82c19d1524ef99a) Thanks [@b84330808](https://github.com/b84330808)! - Fixed `.editorconfig` section globs that have a negative number in a numeric range. `[{-3..3}]` now matches the files named `-3` to `3`, instead of only a file named `{-3..3}`.
  285. - [#12960](https://github.com/biomejs/biome/pull/12960) [`9ff9ee4`](https://github.com/biomejs/biome/commit/9ff9ee43859575c6f299b3623e4794d45de8f755) Thanks [@vibbix](https://github.com/vibbix)! - Fixed a crash when a dependency's `package.json` maps an `exports` entry to its own package name, such as `"exports": { "sass": "my-package" }`. Like Node.js, Biome now rejects `exports` targets that don't start with `./`.
  286. - [#12960](https://github.com/biomejs/biome/pull/12960) [`9ff9ee4`](https://github.com/biomejs/biome/commit/9ff9ee43859575c6f299b3623e4794d45de8f755) Thanks [@vibbix](https://github.com/vibbix)! - Fixed [`noUnusedClasses`](https://biomejs.dev/linter/rules/no-unused-classes/) reporting classes of SCSS partials loaded with `@use`, `@forward` or `@import`. Biome now resolves these loads the way Sass does, including partials such as `_card.scss`, `index` files, and import-only files, so a class in `_card.scss` counts as used when a component imports `styles.scss`, which contains `@use "card"`.
  287. - [#13139](https://github.com/biomejs/biome/pull/13139) [`103dc4e`](https://github.com/biomejs/biome/commit/103dc4ef7de049f6b5a1e2a49df852daa324bc54) Thanks [@dyc3](https://github.com/dyc3)! - Made [`noArrayForEach`](https://biomejs.dev/linter/rules/no-array-for-each/), [`noArraySortForMinMax`](https://biomejs.dev/linter/rules/no-array-sort-for-min-max/), [`noBooleanSortComparator`](https://biomejs.dev/linter/rules/no-boolean-sort-comparator/), [`noNegatedArrayPredicate`](https://biomejs.dev/linter/rules/no-negated-array-predicate/), [`noReturnArrayPush`](https://biomejs.dev/linter/rules/no-return-array-push/), and [`useIteratorZip`](https://biomejs.dev/linter/rules/use-iterator-zip/) agree on which values are known not to be arrays. They now all ignore calls on literals, object literals, functions, classes, `new` expressions other than `new Array()` or a typed array, and variables whose type annotation, type alias, or `const` value is one of those or a built-in type such as `Map`, `Set`, or `string | undefined`. A type declared in the file with the same name as a built-in type, such as `type Set<T> = T[]`, is no longer treated as the built-in type.
  288. ```js
  289. // No longer reported by noArrayForEach
  290. new Collection().forEach((value) => console.log(value));
  291. ```
  292. - [#12941](https://github.com/biomejs/biome/pull/12941) [`ea3b347`](https://github.com/biomejs/biome/commit/ea3b347b1d2c19da80bace044bf1cf111f93468a) Thanks [@dyc3](https://github.com/dyc3)! - Improved the performance of `biome lint`, `biome check`, and `biome ci` on Linux. Biome now spends less time in the operating system for each file it analyzes, so linting large projects is faster.
  293. - [#13343](https://github.com/biomejs/biome/pull/13343) [`b9fdaba`](https://github.com/biomejs/biome/commit/b9fdaba473a58559007a1fe238c37feadadf0d2d) Thanks [@ematipico](https://github.com/ematipico)! - Fixed range formatting in the editor for Vue, Svelte, and Astro files when full HTML support is disabled. Selections that end before the script block no longer format it or report an error, and edits for selections inside the script block are now applied at the selected location.
  294. - [#13007](https://github.com/biomejs/biome/pull/13007) [`6981d43`](https://github.com/biomejs/biome/commit/6981d43a27650101f4ca14788dfbe09ea294ea54) Thanks [@ematipico](https://github.com/ematipico)! - Recognized Astro `<style define:vars>` keys as custom-property declarations. The [`noUndeclaredCustomProperties`](https://biomejs.dev/linter/rules/no-undeclared-custom-properties/) rule now accepts statically supplied variables and avoids diagnostics when dynamic keys may provide a declaration.
  295. - [#13001](https://github.com/biomejs/biome/pull/13001) [`11027d4`](https://github.com/biomejs/biome/commit/11027d45a6f26033f115a334cc07539424cb7164) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#10547](https://github.com/biomejs/biome/issues/10547): Astro files can now place `<!doctype html>` after top-level elements such as inline scripts without parse errors, and formatting preserves the source order.
  296. ```diff
  297. -<script is:inline>console.log("ready");</script>
  298. +<script is:inline>
  299. + console.log("ready");
  300. +</script>
  301. <!doctype html>
  302. ```
  303. - [#13343](https://github.com/biomejs/biome/pull/13343) [`b9fdaba`](https://github.com/biomejs/biome/commit/b9fdaba473a58559007a1fe238c37feadadf0d2d) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#13257](https://github.com/biomejs/biome/issues/13257): untitled VS Code documents now use their existing workspace project, retain it across workspace-folder removal and re-addition, avoid creating projects from non-file URIs, and preserve URI extensions for language detection.
  304. - [#13345](https://github.com/biomejs/biome/pull/13345) [`c071912`](https://github.com/biomejs/biome/commit/c0719125755cb7fb1eba9e4fb54b087a702e1428) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#13335](https://github.com/biomejs/biome/issues/13335): Svelte `{#snippet}` blocks with type parameters, such as `{#snippet row<T extends string>(item: T)}`, are now parsed and formatted. Invalid snippet signatures no longer make the linter panic.
  305. - [#13343](https://github.com/biomejs/biome/pull/13343) [`b9fdaba`](https://github.com/biomejs/biome/commit/b9fdaba473a58559007a1fe238c37feadadf0d2d) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#12317](https://github.com/biomejs/biome/issues/12317) and [#12984](https://github.com/biomejs/biome/issues/12984): VCS ignore matching now preserves logical paths for external and symlinked inputs, normalizes stdin paths, combines coexisting `.gitignore` and `.ignore` rules, respects nested ignore precedence and Git's repository exclude file, and reloads ignore state when ignore files change.
  306. - [#13014](https://github.com/biomejs/biome/pull/13014) [`0c0dfe2`](https://github.com/biomejs/biome/commit/0c0dfe29883b16b358775d96e8708fe27ee6b7a7) Thanks [@ematipico](https://github.com/ematipico)! - Fixed [#12349](https://github.com/biomejs/biome/issues/12349): Biome now reads quote character references, such as `&quot;` and `&[#39](https://github.com/biomejs/biome/issues/39);`, as string quotes in the CSS of HTML and SVG `style` attributes. Valid values such as `font-family: &quot;Rotis Sans&quot;` no longer produce CSS parse diagnostics.
  307. - [#13356](https://github.com/biomejs/biome/pull/13356) [`abe482c`](https://github.com/biomejs/biome/commit/abe482c3d50b4b27f1b0fa49c4248acc18ca1069) Thanks [@github-actions](https://github.com/apps/github-actions)! - Updated the Baseline data of the [`useBaseline`](https://biomejs.dev/linter/rules/use-baseline/) rule. The rule now reports CSS features according to their latest Baseline status.
  308. ## What's Changed
  309. * fix(parse/js): don't panic on import phase modifier without a call by @GBra-4-669 in https://github.com/biomejs/biome/pull/13180
  310. * feat(lint): add useExpectToStrictEqual by @dyc3 in https://github.com/biomejs/biome/pull/13091
  311. * feat(lint): add useExpectToHaveLength by @dyc3 in https://github.com/biomejs/biome/pull/13092
  312. * feat(lint): add noUselessSetConstruction by @dyc3 in https://github.com/biomejs/biome/pull/13100
  313. * feat(lint): add noUselessNestedTernary by @dyc3 in https://github.com/biomejs/biome/pull/13101
  314. * feat(lint): add useTopLevelDescribe by @dyc3 in https://github.com/biomejs/biome/pull/13103
  315. * feat(lint): add noTestGlobals by @dyc3 in https://github.com/biomejs/biome/pull/13119
  316. * feat(lint): add noJasmineGlobals by @dyc3 in https://github.com/biomejs/biome/pull/13120
  317. * feat(lint): add noTestHooks by @dyc3 in https://github.com/biomejs/biome/pull/13121
  318. * feat(lint): add noReturnInTest by @dyc3 in https://github.com/biomejs/biome/pull/13122
  319. * fix(js_type_info): apply destructuring defaults to binding types by @pkallos in https://github.com/biomejs/biome/pull/12548
  320. * feat(tools): internal publisher by @ematipico in https://github.com/biomejs/biome/pull/13199
  321. * refactor(lint): share the non-array receiver check by @dyc3 in https://github.com/biomejs/biome/pull/13139
  322. * chore(deps): update rust crate jiff to 0.2.43 by @renovate[bot] in https://github.com/biomejs/biome/pull/13214
  323. * fix(type_inference): keep broad primitives in falsy branches by @ematipico in https://github.com/biomejs/biome/pull/13153
  324. * fix(type_inference): require explicit annotations for assertion functions by @ematipico in https://github.com/biomejs/biome/pull/13154
  325. * docs(inference): narrowing by @ematipico in https://github.com/biomejs/biome/pull/13155
  326. * feat(type_inference): narrow despite eval and arguments by @ematipico in https://github.com/biomejs/biome/pull/13156
  327. * feat(type_inference): narrow in roots with destructuring, class expressions, and logical assignments by @ematipico in https://github.com/biomejs/biome/pull/13157
  328. * feat(type_inference): treat unsupported statements as opaque regions by @ematipico in https://github.com/biomejs/biome/pull/13158
  329. * perf(rowan): allocate red nodes from a per-thread pool by @dyc3 in https://github.com/biomejs/biome/pull/12962
  330. * ci: automatically update metadata for useBaseline weekly by @dyc3 in https://github.com/biomejs/biome/pull/13093
  331. * feat(plugins/js): add trivia APIs by @dyc3 in https://github.com/biomejs/biome/pull/13195
  332. * chore(deps): upgrade syn to v2, declare external crate versions in the workspace by @dyc3 in https://github.com/biomejs/biome/pull/13190
  333. * docs(rowan): clarify the red-node pool docs and changeset by @dyc3 in https://github.com/biomejs/biome/pull/13250
  334. * perf(parser): match ASCII identifiers in place and trim per-node event work by @dyc3 in https://github.com/biomejs/biome/pull/13210
  335. * perf(biome_rowan): commit sibling changes of a BatchMutation in one pass by @dyc3 in https://github.com/biomejs/biome/pull/12464
  336. * perf(rowan): build green tokens and nodes without per-item copies by @dyc3 in https://github.com/biomejs/biome/pull/13193
  337. * fix(parse/html): don't panic on a second CDATA start marker by @GBra-4-669 in https://github.com/biomejs/biome/pull/13262
  338. * refactor(type_inference): identify narrowing subjects by id by @ematipico in https://github.com/biomejs/biome/pull/13169
  339. * feat(type_inference): narrow property paths of variables by @ematipico in https://github.com/biomejs/biome/pull/13170
  340. * feat(type_inference): narrow element access with literal keys by @ematipico in https://github.com/biomejs/biome/pull/13171
  341. * feat(type_inference): narrow properties of this by @ematipico in https://github.com/biomejs/biome/pull/13172
  342. * feat(type_inference): narrow optional chain receivers by @ematipico in https://github.com/biomejs/biome/pull/13173
  343. * feat(type_inference): narrow through aliased conditions by @ematipico in https://github.com/biomejs/biome/pull/13174
  344. * release: crates v0.7.1 by @github-actions[bot] in https://github.com/biomejs/biome/pull/13264
  345. * release: crates v0.7.2 by @github-actions[bot] in https://github.com/biomejs/biome/pull/13265
  346. * chore(deps): fix advisories by @dyc3 in https://github.com/biomejs/biome/pull/13266
  347. * fix(tools): allow recent crate dependencies when publishing by @ematipico in https://github.com/biomejs/biome/pull/13275
  348. * feat(lint): add noTailwindConflictingClasses by @dyc3 in https://github.com/biomejs/biome/pull/13161
  349. * feat(lint): add noVueDuplicateVElseIf by @dyc3 in https://github.com/biomejs/biome/pull/13164
  350. * feat(lint): add useConsistentIndexedObjectStyle by @dyc3 in https://github.com/biomejs/biome/pull/13191
  351. * feat(lint): add noUselessBind by @dyc3 in https://github.com/biomejs/biome/pull/12544
  352. * fix(markdown_parser): don't pair emphasis across paragraphs in a blockquote by @andrew-hesse in https://github.com/biomejs/biome/pull/13269
  353. * fix(cli): enable Markdown frontmatter when migrating Prettier by @tats-u in https://github.com/biomejs/biome/pull/13273
  354. * release: crates v0.7.3 by @github-actions[bot] in https://github.com/biomejs/biome/pull/13276
  355. * feat(lint): add convex rule source and domain by @dyc3 in https://github.com/biomejs/biome/pull/13284
  356. * fix(lint): compare resolved subjects in noDescendingSpecificity by @vibbix in https://github.com/biomejs/biome/pull/12419
  357. * perf(service): don't build an empty project layout for every analyzed file by @dyc3 in https://github.com/biomejs/biome/pull/12941
  358. * perf(noLateCurrentTargetAccess): skip sync handlers by @dyc3 in https://github.com/biomejs/biome/pull/13140
  359. * refactor(lint): restructure useNullishCoalescing and its tests by @pkallos in https://github.com/biomejs/biome/pull/13252
  360. * fix(module_graph): resolve Sass @use, @forward and @import by @vibbix in https://github.com/biomejs/biome/pull/12960
  361. * ci: add miri by @dyc3 in https://github.com/biomejs/biome/pull/13329
  362. * fix(rowan): stop reading green trees through header-only references by @dyc3 in https://github.com/biomejs/biome/pull/13319
  363. * perf(parse/tailwind): lex class strings ahead of parsing with a SIMD bulk pass by @dyc3 in https://github.com/biomejs/biome/pull/12403
  364. * feat(lint): add noArrayDelete by @dyc3 in https://github.com/biomejs/biome/pull/13192
  365. * feat(lint): add noVueNegationElse by @dyc3 in https://github.com/biomejs/biome/pull/13194
  366. * feat(lint): add useDescribeFunctionTitle by @dyc3 in https://github.com/biomejs/biome/pull/13205
  367. * feat(lint): add useEarlyContinue by @dyc3 in https://github.com/biomejs/biome/pull/13206
  368. * feat(lint): add noUnsafeSqliteInterpolation by @dyc3 in https://github.com/biomejs/biome/pull/13207
  369. * feat(lint): add noCanvasToImage by @dyc3 in https://github.com/biomejs/biome/pull/13208
  370. * feat(lint): add noExpectToHaveBeenCalledOnce by @dyc3 in https://github.com/biomejs/biome/pull/13209
  371. * feat(lint): add useExpectEqualityMatcher by @dyc3 in https://github.com/biomejs/biome/pull/13211
  372. * feat(lint): add useTanstackQueryMutationPropertyOrder by @dyc3 in https://github.com/biomejs/biome/pull/13212
  373. * feat(lint): add useTanstackQueryExhaustiveDependencies by @dyc3 in https://github.com/biomejs/biome/pull/13215
  374. * feat(lint): add noImmediateMutation by @dyc3 in https://github.com/biomejs/biome/pull/13217
  375. * feat(lint): add noUselessDefaultAssignment by @dyc3 in https://github.com/biomejs/biome/pull/13216
  376. * fix(type_inference): resolve class method type parameters in the method scope by @dyc3 in https://github.com/biomejs/biome/pull/13184
  377. * fix(type_inference): compare recursive and overloaded generic instances by @dyc3 in https://github.com/biomejs/biome/pull/13185
  378. * fix(format/html): keep touching siblings on the same line by @dyc3 in https://github.com/biomejs/biome/pull/13301
  379. * chore(devcontainer): add container environment variables for Cargo by @Th3S4mur41 in https://github.com/biomejs/biome/pull/13328
  380. * perf(grit): cache the line index when converting match positions by @Jayllyz in https://github.com/biomejs/biome/pull/13342
  381. * chore(deps): update rust crates by @renovate[bot] in https://github.com/biomejs/biome/pull/13045
  382. * perf(grit): stop copying the match history on every state clone by @Jayllyz in https://github.com/biomejs/biome/pull/13344
  383. * chore(deps): update rust crates (major) by @renovate[bot] in https://github.com/biomejs/biome/pull/11372
  384. * refactor(core): path handling by @ematipico in https://github.com/biomejs/biome/pull/13343
  385. * fix(parse/svelte): support type parameters in snippet blocks by @dyc3 in https://github.com/biomejs/biome/pull/13345
  386. * test(astro): establish stability baseline by @ematipico in https://github.com/biomejs/biome/pull/13000
  387. * fix(html_parser): parse Astro doctypes after root elements by @ematipico in https://github.com/biomejs/biome/pull/13001
  388. * test(lsp): preserve Astro formatting across projects by @ematipico in https://github.com/biomejs/biome/pull/13002
  389. * feat(astro): add semantic model foundation by @ematipico in https://github.com/biomejs/biome/pull/13003
  390. * feat(astro): resolve frontmatter references by @ematipico in https://github.com/biomejs/biome/pull/13004
  391. * feat(astro): model client script scopes by @ematipico in https://github.com/biomejs/biome/pull/13005
  392. * feat(astro): model style define vars by @ematipico in https://github.com/biomejs/biome/pull/13007
  393. * feat(astro): adapt embedded semantic service by @ematipico in https://github.com/biomejs/biome/pull/13008
  394. * fix(astro): resolve cross-language rule references by @ematipico in https://github.com/biomejs/biome/pull/13009
  395. * fix(astro): track cross-language uses by @ematipico in https://github.com/biomejs/biome/pull/13010
  396. * fix(analyzer): run file rules once per host by @ematipico in https://github.com/biomejs/biome/pull/13011
  397. * fix(html_analyze): handle dynamic Astro attribute values by @ematipico in https://github.com/biomejs/biome/pull/13012
  398. * feat(astro): disallow component default exports by @ematipico in https://github.com/biomejs/biome/pull/13013
  399. * fix(html): decode quotes in style attributes by @ematipico in https://github.com/biomejs/biome/pull/13014
  400. * fix(html_formatter): format class and style attributes by @ematipico in https://github.com/biomejs/biome/pull/13015
  401. * fix(astro): preserve failed and unsupported embeds by @ematipico in https://github.com/biomejs/biome/pull/13016
  402. * fix(astro): skip incompatible runtime JSX rules by @ematipico in https://github.com/biomejs/biome/pull/13018
  403. * fix(fmt): memory layout bounds by @ematipico in https://github.com/biomejs/biome/pull/13362
  404. * refactor(rowan): token walk by @ematipico in https://github.com/biomejs/biome/pull/13355
  405. * chore(deps): fix advisories by @dyc3 in https://github.com/biomejs/biome/pull/13364
  406. * chore: update useBaseline data by @github-actions[bot] in https://github.com/biomejs/biome/pull/13356
  407. * perf(tailwind_parser): classify lexer bytes with NEON on aarch64 by @dyc3 in https://github.com/biomejs/biome/pull/13332
  408. * fix(format/html/svelte): keep `{#if}`, `{#each}` and other Svelte blocks touching their siblings by @garysassano in https://github.com/biomejs/biome/pull/13375
  409. * fix(markdown_parser): end quoted list items at whitespace-only quote lines by @jfmcdowell in https://github.com/biomejs/biome/pull/13083
  410. * fix(markdown_formatter): use indentWidth for list item content by @dyc3 in https://github.com/biomejs/biome/pull/13372
  411. * feat(js_parser): parse MDX snippets by @ematipico in https://github.com/biomejs/biome/pull/12833
  412. * feat(markdown_formatter): format MDX nodes by @ematipico in https://github.com/biomejs/biome/pull/12834
  413. * feat(service): handle MDX documents behind lang_mdx by @ematipico in https://github.com/biomejs/biome/pull/12835
  414. * feat(analyze): lint MDX documents by @ematipico in https://github.com/biomejs/biome/pull/12836
  415. * fix(glob): support negative numbers in editorconfig numeric ranges by @b84330808 in https://github.com/biomejs/biome/pull/12937
  416. * refactor(rowan): batch mutations by @ematipico in https://github.com/biomejs/biome/pull/13383
  417. * chore(deps): update dependency tombi to v1.11.3 by @renovate[bot] in https://github.com/biomejs/biome/pull/13379
  418. * chore: update rule metadata by @dyc3 in https://github.com/biomejs/biome/pull/13388
  419. * feat(lint): add BiomePlugin domain, add useBiomeKindSets and useBiomeTopLevelTypes by @dyc3 in https://github.com/biomejs/biome/pull/13271
  420. * fix(biome_js_analyze): allow import attributes on mixed type/value imports by @EnesKartal in https://github.com/biomejs/biome/pull/13394
  421. * ci: release by @github-actions[bot] in https://github.com/biomejs/biome/pull/13202
  422. ## New Contributors
  423. * @andrew-hesse made their first contribution in https://github.com/biomejs/biome/pull/13269
  424. * @tats-u made their first contribution in https://github.com/biomejs/biome/pull/13273
  425. * @garysassano made their first contribution in https://github.com/biomejs/biome/pull/13375
  426. * @b84330808 made their first contribution in https://github.com/biomejs/biome/pull/12937
  427. * @EnesKartal made their first contribution in https://github.com/biomejs/biome/pull/13394
  428. **Full Changelog**: https://github.com/biomejs/biome/compare/@biomejs/biome@2.6.8...@biomejs/biome@2.6.9

vedi su githubdetected 2026-12-04 via npm