Skip to content

Remove unused imports/variables and resolve no-unused errors across repo #9

@sugan0tech

Description

@sugan0tech

Summary
Remove unused imports/variables and resolve no-unused lint errors across the repo without changing behavior.

Context
npm run lint reports many @typescript-eslint/no-unused-vars and no-unused imports in files including App.tsx, components/Map/, components/avatar/, components/space/, layouts/, store/*.

Examples

  • App.tsx: path imported but unused.
  • Map components: Button, Grid, Image imported but unused.
  • SpaceView.tsx: Chat, refs, and offsets declared but unused.
  • DashboardLayout.tsx: Heading, Text, Navigate imported but unused.
  • CreateAvatar.tsx: unused experimental/UNSAFE import.

Tasks

  • Remove unused imports and variables or wire them up if they were intended for use.
  • Prefer const over let where variables are not reassigned (per linter hints).
  • Leave intentional placeholders only if commented with clear TODO and linter suppression, if truly needed.

Acceptance Criteria

  • npm run lint passes with zero no-unused errors.
  • TypeScript build is clean (tsc -b).
  • No runtime behavior changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions