Skip to content

Commit 3743340

Browse files
committed
Merge branch 'main' of github.com:taga3s/biome into add-useInlineScriptId
2 parents 1f25891 + a1914d4 commit 3743340

File tree

83 files changed

+2585
-120
lines changed

Some content is hidden

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

83 files changed

+2585
-120
lines changed
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+
Added new nursery rule [`noDuplicateAttributes`](https://biomejs.dev/linter/rules/no-duplicate-attributes/) to forbid duplicate attributes in HTML elements.
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 `noUnusedVariables` to ignore type parameters declared in ambient contexts such as `declare module` blocks.

.changeset/cool-plums-cheer.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+
Added the nursery rule [`noRootType`](https://biomejs.dev/linter/rules/no-root-type).
6+
Disallow the usage of specified root types. (e.g. `mutation` and/or `subscription`)
7+
8+
**Invalid:**
9+
10+
```json
11+
{
12+
"options": {
13+
"disallow": ["mutation"]
14+
}
15+
}
16+
```
17+
18+
```graphql
19+
type Mutation {
20+
SetMessage(message: String): String
21+
}
22+
```

.changeset/dull-yaks-poke.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
Added the nursery lint rule `useErrorCause`.
5+
6+
This rule enforces that errors caught in a `catch` clause are not rethrown without wrapping them in a new `Error` object and specifying the original error as the `cause`. This helps preserve the error’s stack trace and context for better debugging.
7+
8+
It can be configured with the following option:
9+
10+
- `requireCatchParameter`: (default: `true`)
11+
- When `true`, the rule requires that `catch` clauses have a parameter. If a `throw` statement appears inside a `catch` clause without a parameter, it will be flagged.
12+
13+
**Invalid examples**:
14+
15+
```js
16+
try {
17+
foo();
18+
} catch {
19+
throw new Error("fail");
20+
}
21+
```
22+
23+
```js
24+
try {
25+
foo();
26+
} catch (err) {
27+
throw new Error(err.message);
28+
}
29+
```
30+
31+
**Valid examples:**
32+
33+
```js
34+
try {
35+
foo();
36+
} catch (err) {
37+
throw new Error("fail", { cause: err });
38+
}
39+
```
40+
41+
```js
42+
try {
43+
foo();
44+
} catch (error) {
45+
throw new Error("Something went wrong", { cause: error });
46+
}
47+
```
48+
49+
**Valid example** when `requireCatchParameter` is `false`:
50+
51+
Valid:
52+
53+
```js
54+
try {
55+
foo();
56+
} catch {
57+
throw new Error("fail");
58+
}
59+
```

.changeset/grumpy-garlics-unite.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 [#8678](https://github.com/biomejs/biome/issues/8678). Now Biome correctly parses components inside Vue, Svelte and Astro files when they have the same name of self-closing elements.

.github/workflows/benchmark_configuration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
CARGO_BUILD_JOBS: 3 # Default is 4 (equals to the vCPU count of the runner), which leads OOM on cargo build
6161

6262
- name: Run the benchmarks
63-
uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # v4.5.1
63+
uses: CodSpeedHQ/action@dbda7111f8ac363564b0c51b992d4ce76bb89f2f # v4.5.2
6464
timeout-minutes: 50
6565
with:
6666
mode: simulation

.github/workflows/benchmark_css.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
CARGO_BUILD_JOBS: 3 # Default is 4 (equals to the vCPU count of the runner), which leads OOM on cargo build
7373

7474
- name: Run the benchmarks
75-
uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # v4.5.1
75+
uses: CodSpeedHQ/action@dbda7111f8ac363564b0c51b992d4ce76bb89f2f # v4.5.2
7676
timeout-minutes: 50
7777
with:
7878
mode: simulation

.github/workflows/benchmark_graphql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
CARGO_BUILD_JOBS: 3 # Default is 4 (equals to the vCPU count of the runner), which leads OOM on cargo build
7070

7171
- name: Run the benchmarks
72-
uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # v4.5.1
72+
uses: CodSpeedHQ/action@dbda7111f8ac363564b0c51b992d4ce76bb89f2f # v4.5.2
7373
timeout-minutes: 50
7474
with:
7575
mode: simulation

.github/workflows/benchmark_js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
CARGO_BUILD_JOBS: 3 # Default is 4 (equals to the vCPU count of the runner), which leads OOM on cargo build
7373

7474
- name: Run the benchmarks
75-
uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # v4.5.1
75+
uses: CodSpeedHQ/action@dbda7111f8ac363564b0c51b992d4ce76bb89f2f # v4.5.2
7676
timeout-minutes: 50
7777
with:
7878
mode: simulation

.github/workflows/benchmark_json.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
CARGO_BUILD_JOBS: 3 # Default is 4 (equals to the vCPU count of the runner), which leads OOM on cargo build
7373

7474
- name: Run the benchmarks
75-
uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # v4.5.1
75+
uses: CodSpeedHQ/action@dbda7111f8ac363564b0c51b992d4ce76bb89f2f # v4.5.2
7676
timeout-minutes: 50
7777
with:
7878
mode: simulation

0 commit comments

Comments
 (0)