🌐
npm
npmjs.com › package › eslint-plugin-unused-imports
eslint-plugin-unused-imports - npm
It works by splitting up the no-unused-vars rule depending on it being an import statement in the AST and providing an autofix rule to remove the nodes if they are imports. This plugin composes the rule no-unused-vars of either the typescript ...
      » npm install eslint-plugin-unused-imports
    
Published   Feb 09, 2026
Version   4.4.1
Author   Mikkel Holmer Pedersen
🌐
GitHub
github.com › mshmyw › eslint-plugin-unused-vars-and-imports
GitHub - mshmyw/eslint-plugin-unused-vars-and-imports: eslint autofix unused imports and vars typescript
yarn install @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript-eslint/utils eslint -D yarn install eslint-plugin-unused-vars-and-imports -D
Author   mshmyw
🌐
npm
npmjs.com › package › eslint-plugin-unused-vars-and-imports
eslint-plugin-unused-vars-and-imports - npm
yarn install @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript-eslint/utils eslint -D yarn install eslint-plugin-unused-vars-and-imports -D
      » npm install eslint-plugin-unused-vars-and-imports
    
🌐
Yarn
yarnpkg.com › package
eslint-plugin-unused-imports
Yarn is a package manager that doubles down as project manager. Whether you work on simple projects or industry monorepos, whether you're an open source developer or an enterprise user, Yarn has your back · First package manager built specifically around workspaces, Yarn lets you split your ...
🌐
GitHub
github.com › eslint › eslint › discussions › 18494
Add optional feature to remove unused imports · eslint/eslint · Discussion #18494
Hi, im the maintainer of eslint-plugin-unused-imports. I have started switching projects over to biome because they have a nice optional fixer for removing unused imports. They dont guarantee that ...
Author   eslint
🌐
GitHub
github.com › sweepline › eslint-plugin-unused-imports
GitHub - sweepline/eslint-plugin-unused-imports: Package to separate no-unused-vars and no-unused-imports for eslint as well as providing an autofixer for the latter.
It works by splitting up the no-unused-vars rule depending on it being an import statement in the AST and providing an autofix rule to remove the nodes if they are imports. This plugin composes the rule no-unused-vars of either the typescript ...
Starred by 615 users
Forked by 27 users
Languages   TypeScript 98.2% | JavaScript 1.8% | TypeScript 98.2% | JavaScript 1.8%
🌐
Simon Dosda
simondosda.github.io › posts › 2021-05-10-eslint-imports.html
Automatically Remove Unused Imports From Your JS Projects | Simon Dosda
July 6, 2021 - To automatically remove unused imports, we will need to add the eslint-plugin-unused-imports plugin.
Find elsewhere
🌐
GitHub
github.com › sweepline › eslint-plugin-unused-imports › blob › master › docs › rules › no-unused-imports.md
eslint-plugin-unused-imports/docs/rules/no-unused-imports.md at master · sweepline/eslint-plugin-unused-imports
Package to separate no-unused-vars and no-unused-imports for eslint as well as providing an autofixer for the latter. - sweepline/eslint-plugin-unused-imports
Author   sweepline
🌐
ESLint
eslint.org › docs › latest › rules › no-unused-vars
no-unused-vars - ESLint - Pluggable JavaScript Linter
In environments outside of CommonJS or ECMAScript modules, you may use var to create a global variable that may be used by other scripts. You can use the /* exported variableName */ comment block to indicate that this variable is being exported and therefore should not be considered unused.
🌐
Cma
writing.cma.xyz › colin armstrong › automatically remove unused imports & variables in vim using ale and eslint
Automatically remove unused imports & variables in Vim using ...
December 10, 2022 - Let’s install ESLint, as well as the eslint-plugin-unused-imports plugin: yarn add -D eslint yarn add -D eslint-plugin-unused-imports
🌐
UNPKG
app.unpkg.com › eslint-plugin-unused-imports@3.0.0 › files › docs › rules › no-unused-vars.md
eslint-plugin-unused-imports
github.com/sweepline/eslint-pl... · 4 · 5 · 6 · # Do not allow unused vars (no-unused-vars) This is just a helper rule to filter out the things caught by the `no-unused-imports` rule without double warnings....
🌐
GitHub
github.com › typescript-eslint › typescript-eslint › issues › 8631
Bug: [@typescript-eslint/no-unused-vars] Fails to detect certain unused imported interfaces · Issue #8631 · typescript-eslint/typescript-eslint
March 8, 2024 - I expected the @typescript-eslint/no-unused-vars rule to identify all unused imports but certain ones seem to be ignored. ... Check out the repository. ... Run yarn install.
Author   kenlyon
🌐
DEV Community
dev.to › yehezkielgunawan › how-to-publish-eslint-rules-as-npm-package-12ce
How To Publish ESLint Rules as NPM Package - DEV Community
June 22, 2022 - yarn add @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-plugin-import eslint-plugin-sonarjs eslint-plugin-unused-imports
🌐
Acusti
acusti.ca › blog › 2025 › 01 › 13 › eslint-plugin-import-with-yarn-pnp
Making the ESLint Import Plugin Work with Yarn PnP | acusti.ca
The issue stems from the inability of import plugin to resolve external modules under Yarn PnP. When PnP is enabled, external dependencies are declared in a single file and can no longer be resolved using the default npm-style node_modules-based resolution algorithm.
🌐
CodeSandbox
codesandbox.io › examples › package › eslint-plugin-unused-imports
eslint-plugin-unused-imports examples - CodeSandbox
Use this online eslint-plugin-unused-imports playground to view and fork eslint-plugin-unused-imports example apps and templates on CodeSandbox.