Thanks to visit codestin.com
Credit goes to github.com

Skip to content
8 changes: 8 additions & 0 deletions .changeset/lazy-lobsters-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@biomejs/biome": patch
---

The default value of the `ignoreRestSiblings` option for [`noUnusedVariables`](https://biomejs.dev/linter/rules/no-unused-variables)'
has been reverted to its prior value of `true` after [an internal refactor](https://github.com/biomejs/biome/pull/7941) accidentally changed it.

The diagnostic message has also been tweaked for readability.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test.js:1:17 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1 │ debugger; const a = 0;
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ test.js:1:9 lint/correctness/noUnusedVariables ━━━━━━━━━━━
> 1 │ const { a, ...rest } = { a: 1, b: 2}; export { rest }
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i You can use the ignoreRestSiblings option to ignore unused variables in an object destructuring with a spread.
i You can enable the ignoreRestSiblings option to ignore unused variables inside destructured objects with rest properties.
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test.js:1:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
2currentName = name;
3}
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend setName with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test.js:1:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
2 │ currentName = name;
3 │ }
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend setName with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test.js:1:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
2 │ currentName = name;
3 │ }
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend setName with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test.js:1:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
2 │ currentName = name;
3 │ }
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend setName with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1let a = {
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1let a = {
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1let a = {
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1let a = {
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1let a = {
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1let a = {
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1let a = {
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ file.astro:2:9 lint/correctness/noUnusedVariables ━━━━━━━━━━
3 │ ---
4 │ <div>{some}</div>
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ file.vue:5:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
6 │ </script>
7 │ <template></template>
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend foo with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ file.vue:5:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
6 │ </script>
7 │ <template></template>
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend foo with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ file.vue:16:7 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
17default(props: { msg: string }): any
18}>()
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend slots with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test1.js:1:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
│ ^
2 │
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend f with an underscore.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/biome_cli/tests/snap_test.rs
assertion_line: 432
expression: redactor(content)
---
## `packages/mobile/biome.json`
Expand Down Expand Up @@ -71,7 +70,7 @@ packages/mobile/src/file.js:1:7 lint/correctness/noUnusedVariables FIXABLE ━
│ ^^^^^^
2 │
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend merged with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1 │ let a; debugger
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ packages/lib/file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━
> 1 │ let a; debugger
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ packages/lib/file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━
> 1 │ let a; debugger
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ packages/lib/file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━
> 1 │ let a; debugger
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ file.js:1:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1 │ function f() { const lorem_and_ipsum = 'lorem ipsum'; }
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend f with an underscore.
Expand All @@ -104,7 +104,7 @@ file.js:1:22 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1 │ function f() { const lorem_and_ipsum = 'lorem ipsum'; }
│ ^^^^^^^^^^^^^^^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend lorem_and_ipsum with an underscore.
Expand All @@ -122,7 +122,7 @@ packages/lib/file.js:1:10 lint/correctness/noUnusedVariables FIXABLE ━━━
> 1 │ function f() { const lorem_and_ipsum = 'lorem ipsum'; }
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend f with an underscore.
Expand All @@ -140,7 +140,7 @@ packages/lib/file.js:1:22 lint/correctness/noUnusedVariables FIXABLE ━━━
> 1 │ function f() { const lorem_and_ipsum = 'lorem ipsum'; }
│ ^^^^^^^^^^^^^^^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend lorem_and_ipsum with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ file.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 1 │ let a; debugger
│ ^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend a with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test.jsx:4:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
5 │ const [local,SetLocal] = useState(0);
6 │ const handle = useCallback(() => {

i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.

i Unsafe fix: If this is intentional, prepend Component2 with an underscore.

Expand All @@ -78,7 +78,7 @@ test.jsx:5:18 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
6 │ const handle = useCallback(() => {
7 │ console.log(local);

i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.

i Unsafe fix: If this is intentional, prepend SetLocal with an underscore.

Expand All @@ -104,7 +104,7 @@ test.jsx:6:11 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
7 │ console.log(local);
8 │ }, [local, local]);

i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.

i Unsafe fix: If this is intentional, prepend handle with an underscore.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test.jsx:4:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
5 │ const [local,SetLocal] = useState(0);
6 │ const handle = useCallback(() => {

i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.

i Unsafe fix: If this is intentional, prepend Component2 with an underscore.

Expand All @@ -81,7 +81,7 @@ test.jsx:5:18 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
6 │ const handle = useCallback(() => {
7 │ console.log(local);

i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.

i Unsafe fix: If this is intentional, prepend SetLocal with an underscore.

Expand All @@ -107,7 +107,7 @@ test.jsx:6:11 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
7 │ console.log(local);
8 │ }, [local, local]);

i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.

i Unsafe fix: If this is intentional, prepend handle with an underscore.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ file.ts:6:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
7 │ console.log(chalk.yellow('we do something here'));
8 │ }

i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.

i Unsafe fix: If this is intentional, prepend sommething with an underscore.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ file.js:2:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
3 │ /**
4 │ * biome-ignore-all lint/style/useConst: reason
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend foo with an underscore.
Expand Down Expand Up @@ -170,7 +170,7 @@ file.js:8:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 8 │ let bar = 33;
│ ^^^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend bar with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ file.ts:2:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
3 │ // biome-ignore-all lint/style/useConst: <explanation>
4 │ var bar = 33;
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend foo with an underscore.
Expand All @@ -94,7 +94,7 @@ file.ts:4:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
> 4 │ var bar = 33;
│ ^^^
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend bar with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ file.ts:5:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
6 │ console.log(chalk.yellow('we do something here'));
7 │ }
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend sommething with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ file.ts:7:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
8 │ console.log(chalk.yellow('we do something here'));
9 │ }
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend sommething with an underscore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ file.ts:6:10 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━
7 │ console.log(chalk.yellow('we do something here'));
8 │ }
i Unused variables are often the result of an incomplete refactoring, typos, or other sources of bugs.
i Unused variables are often the result of typos, incomplete refactors, or other sources of bugs.
i Unsafe fix: If this is intentional, prepend sommething with an underscore.
Expand Down
Loading
Loading