Skip to content

Commit ce40337

Browse files
committed
Merge branch 'main' into next
2 parents 4186b83 + ac0fb2d commit ce40337

File tree

892 files changed

+111285
-45458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

892 files changed

+111285
-45458
lines changed

.changeset/bumpy-months-draw.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Fixed [#7390](https://github.com/biomejs/biome/issues/7390), where Biome couldn't apply the correct configuration passed via `--config-path`.
6+
7+
If you have multiple **root** configuration files, running any command with `--config-path` will now apply the chosen configuration file.

.changeset/calm-shrimps-study.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@biomejs/biome': patch
3+
---
4+
5+
Added the new rule [`noLeakedRender`](https://biomejs.dev/linter/rules/no-leaked-render). This rule helps prevent potential leaks when rendering components that use binary expressions or ternaries.
6+
7+
For example, the following code triggers the rule because the component would render `0`:
8+
9+
```jsx
10+
const Component = () => {
11+
const count = 0;
12+
return <div>{count && <span>Count: {count}</span>}</div>;
13+
}
14+
```

.changeset/clean-swans-act.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Added the nursery rule [`noDuplicatedSpreadProps`](https://biomejs.dev/linter/rules/no-duplicated-spread-props/). Disallow JSX prop spreading the same identifier multiple times.
6+
7+
**Invalid:**
8+
9+
```jsx
10+
<div {...props} something="else" {...props} />
11+
```

.changeset/cold-webs-vanish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Fixed a bug where logs were discarded (the kind from `--log-level=info` etc.). This is a regression introduced after an internal refactor that wasn't adequately tested.

.changeset/forty-falcons-pick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Fixed [#8222](https://github.com/biomejs/biome/issues/8222): The HTML parser, with Vue directives enabled, can now parse `v-slot` shorthand syntax, e.g. `<template #foo>`.

.changeset/funny-pans-act.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Added support for dollar-sign-prefixed filenames in the [`useFilenamingConvention`](https://biomejs.dev/linter/rules/use-filenaming-convention/) rule.
6+
7+
Biome now allows filenames starting with the dollar-sign (e.g. `$postId.tsx`) by default to support naming conventions used by frameworks such as [TanStack Start](https://tanstack.com/start/latest/docs/framework/react/guide/routing#file-based-routing) for file-based-routing.

.changeset/happy-mirrors-grow.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Added the [`noMultiStr`](https://biomejs.dev/linter/rules/no-multi-str) rule, which disallows creating multiline strings by escaping newlines.
6+
7+
**Invalid:**
8+
9+
```js
10+
const foo =
11+
"Line 1\n\
12+
Line 2";
13+
```
14+
15+
**Valid:**
16+
17+
```js
18+
const foo = "Line 1\nLine 2";
19+
const bar = `Line 1
20+
Line 2`;
21+
```

.changeset/honest-eagles-learn.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Fixed [#7806](https://github.com/biomejs/biome/issues/7806): Prefer breaking after the assignment operator for conditional types with generic parameters to match Prettier.
6+
7+
```diff
8+
-type True = unknown extends Type<
9+
- "many",
10+
- "generic",
11+
- "parameters",
12+
- "one",
13+
- "two",
14+
- "three"
15+
->
16+
- ? true
17+
- : false;
18+
+type True =
19+
+ unknown extends Type<"many", "generic", "parameters", "one", "two", "three">
20+
+ ? true
21+
+ : false;
22+
```

.changeset/icy-results-wonder.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Fixed [#6569](https://github.com/biomejs/biome/issues/6569): Allow files to export from themselves with `noImportCycles`.
6+
7+
This means the following is now allowed:
8+
9+
```js
10+
// example.js
11+
export function example() {
12+
return 1;
13+
}
14+
15+
// Re-exports all named exports from the current module under a single namespace
16+
// and then imports the namespace from the current module.
17+
// Allows for encapsulating functions/variables into a namespace instead
18+
// of using a static class.
19+
export * as Example from './example.js';
20+
21+
import { Example } from './example.js';
22+
```

.changeset/legal-rice-clean.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Added the [`noEqualsToNull`](https://biomejs.dev/linter/rules/no-equals-to-null) rule, which enforces the use of `===` and `!==` for comparison with `null` instead of `==` or `!=`.
6+
7+
**Invalid:**
8+
9+
```js
10+
foo == null;
11+
foo != null;
12+
```
13+
14+
**Valid:**
15+
16+
```js
17+
foo === null;
18+
foo !== null;
19+
```

0 commit comments

Comments
 (0)