---
source: crates/oxc_linter/src/tester.rs
---
  ⚠ eslint(no-unused-vars): Variable 'a' is declared but never used.
   ╭─[no_unused_vars.tsx:1:9]
 1 │ const { a, ...rest } = obj
   ·         ┬
   ·         ╰── 'a' is declared here
   ╰────
  help: Consider removing this declaration.

  ⚠ eslint(no-unused-vars): Variable 'rest' is declared but never used.
   ╭─[no_unused_vars.tsx:1:15]
 1 │ const { a, ...rest } = obj
   ·               ──┬─
   ·                 ╰── 'rest' is declared here
   ╰────
  help: Consider removing this declaration.

  ⚠ eslint(no-unused-vars): Variable 'a' is declared but never used.
   ╭─[no_unused_vars.tsx:1:8]
 1 │ const [a, ...rest] = arr
   ·        ┬
   ·        ╰── 'a' is declared here
   ╰────
  help: Consider removing this declaration.

  ⚠ eslint(no-unused-vars): Variable 'rest' is declared but never used.
   ╭─[no_unused_vars.tsx:1:14]
 1 │ const [a, ...rest] = arr
   ·              ──┬─
   ·                ╰── 'rest' is declared here
   ╰────
  help: Consider removing this declaration.

  ⚠ eslint(no-unused-vars): Variable 'b' is declared but never used.
   ╭─[no_unused_vars.tsx:1:14]
 1 │ const { a: { b }, ...rest } = obj; console.log(a)
   ·              ┬
   ·              ╰── 'b' is declared here
   ╰────
  help: Consider removing this declaration.

  ⚠ eslint(no-unused-vars): Variable 'rest' is declared but never used.
   ╭─[no_unused_vars.tsx:1:22]
 1 │ const { a: { b }, ...rest } = obj; console.log(a)
   ·                      ──┬─
   ·                        ╰── 'rest' is declared here
   ╰────
  help: Consider removing this declaration.
