Skip to content

[FEAT] Add new rule no-unused-imports #411

@ShayanTheNerd

Description

@ShayanTheNerd

In VS Code, it's possible to have unused imports automatically removed when saving the file:
.vscode/setting.json

{
  "editor.codeActionsOnSave": {
    "source.removeUnusedImports": "explicit"
  }
}

I think enforcing this as an autofixable ESLint rule (in a shared config, for example) would be beneficial. I'm using eslint-plugin-unused-imports for now, but I prefer not having to install another dependency just for a single rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions