Provinite / Provinite/chardb

Enable no-unused-imports lint rule

Open
#48 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
2h 52m
Merged PRs (30d)
85

Description

Description

Enable a lint rule to automatically detect and flag unused imports across the codebase.

Problem

During code refactoring and development, unused imports can accumulate, leading to:

  • Increased bundle size
  • Code clutter and reduced readability
  • Potential confusion about actual dependencies
  • Maintenance overhead

Proposed Solution

Enable the no-unused-imports or similar lint rule in our ESLint configuration to automatically detect and flag unused imports.

Implementation Options

  1. ESLint rule: Enable @typescript-eslint/no-unused-vars with import-specific configuration
  2. Additional tooling: Consider tools like eslint-plugin-unused-imports for more specific unused import detection
  3. Auto-fix: Configure the rule to automatically remove unused imports where safe

Acceptance Criteria

  • Lint rule is configured in .eslintrc.js or equivalent config file
  • Rule catches unused imports in TypeScript/JavaScript files
  • CI pipeline fails if unused imports are detected
  • Documentation updated with information about the new rule
  • Existing unused imports in codebase are cleaned up (separate task/PR)

Additional Notes

This will help maintain code quality and prevent accumulation of dead imports during ongoing development and refactoring work.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the ESLint configuration, such as .eslintrc.js or its equivalent, and the CI pipeline that runs linting. Compare the available unused-import rule options for TypeScript and JavaScript, then verify that the selected rule is enforced in CI and that the documentation describes it; existing unused-import cleanup is explicitly separate.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript, typescript
Domain
ci-cd, documentation, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.