Skip to content

Commit b71bdc4

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

File tree

168 files changed

+5056
-1519
lines changed

Some content is hidden

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

168 files changed

+5056
-1519
lines changed

.changeset/add-no-v-options-api.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 a new nursery rule [`noVueOptionsApi`](https://biomejs.dev/linter/rules/no-vue-options-api/).
6+
7+
Biome now reports Vue Options API usage, which is incompatible with Vue 3.6's Vapor Mode.
8+
This rule detects Options API patterns in `<script>` blocks, `defineComponent()`, and `createApp()` calls,
9+
helping prepare codebases for Vapor Mode adoption.
10+
11+
For example, the following now triggers this rule:
12+
13+
```vue
14+
<script>
15+
export default {
16+
data() {
17+
return { count: 0 };
18+
}
19+
}
20+
</script>
21+
```

.changeset/cruel-mice-obey.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Renamed the following GraphQL nursery rules to match the Biome standard:
6+
7+
- `useUniqueArgumentNames` -> `noDuplicateArgumentNames`
8+
- `useUniqueFieldDefinitionNames` -> `noDuplicateFieldDefinitionNames`
9+
- `useUniqueGraphqlOperationName` -> `noDuplicateGraphqlOperationName`
10+
- `useUniqueInputFieldNames` -> `noDuplicateInputFieldNames`
11+
- `useUniqueVariableNames` -> `noDuplicateVariableNames`
12+
13+
Run the `biome migrate --write` command to automatically update the configuration file.

.changeset/easy-ears-guess.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 [#8715](https://github.com/biomejs/biome/issues/8715): The CSS parser will now recover slightly better if a semicolon is missing from Tailwind's `@apply` at-rule.

.changeset/famous-ads-dance.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+
Fixed [#3512](https://github.com/biomejs/biome/issues/3512):
6+
[`useExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/) now properly handles nested destructuring patterns
7+
from hook results.
8+
9+
```tsx
10+
const [[x, y], setXY] = useState([1, 2]);
11+
useEffect(() => {
12+
console.log(x, y);
13+
}, [x, y]); // x and y are now correctly recognized as unstable
14+
```
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
6+
Fixed [#6670](https://github.com/biomejs/biome/issues/6670). The `$filename` metavariable can now be used in GritQL `where` clauses to filter matches by filename.

.changeset/forty-sloths-begin.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Fixed [#3685](https://github.com/biomejs/biome/issues/3685):
6+
[`useExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/) now properly handles transparent expression
7+
wrappers like non-null assertions and type assertions in dependency comparisons.
8+
9+
```tsx
10+
useMemo(() => Boolean(myObj!.x), [myObj!.x]); // No longer reports incorrect diagnostics
11+
useMemo(() => myObj!.x?.y === true, [myObj!.x?.y]); // Now correctly matches dependencies
12+
```

.changeset/free-cars-take.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"@biomejs/biome": patch
33
---
44

5-
Added the nursery rule [`useUniqueEnumValueNames`](https://biomejs.dev/linter/rules/use-unique-enum-value-names/). Enforce unique enum value names.
5+
Added the nursery rule [`noDuplicateEnumValueNames`](https://biomejs.dev/linter/rules/no-duplicate-enum-value-names/). Enforce unique enum value names.
66

77
**Invalid:**
88

.changeset/orange-news-sink.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+
Added new nursery rule [`noDuplicateEnumValues`](https://biomejs.dev/linter/rules/no-duplicate-enum-values), which disallows defining an enum with multiple members initialized to the same value.

.changeset/public-doodles-cut.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Fixed [#5914](https://github.com/biomejs/biome/issues/5914):
6+
[`useExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/) now properly handles variables declared in the same
7+
statement.
8+
9+
```tsx
10+
const varA = Math.random(),
11+
varB = useMemo(() => varA, [varA]); // varA is now correctly recognized as needed
12+
```

.changeset/puny-eagles-hang.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+
Fixed [#8427](https://github.com/biomejs/biome/issues/8427):
6+
[`useExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/) now properly resolves variable references to detect
7+
captured dependencies.
8+
9+
```tsx
10+
const fe = fetchEntity;
11+
useEffect(() => {
12+
fe(id);
13+
}, [id, fe]); // fe is now correctly detected as needed
14+
```

0 commit comments

Comments
 (0)