eslint-plugin-phantom-dependencies

Make sure no phantom dependencies are used in your project

MIT License

Downloads
10
Stars
2
Committers
1

eslint-plugin-phantom-dependencies

Make sure no 👻 phantom dependencies are used in your project.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-phantom-dependencies:

npm install eslint-plugin-phantom-dependencies --save-dev

Usage

On your .eslintrc file extend the plugin's recommended configuration:

{
  "extends": ["plugin:phantom-dependencies/recommended"]
}

If you want to use your own configuration, you can do so by adding the plugin to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["phantom-dependencies"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "phantom-dependencies/no-phantom-dependencies": "error"
  }
}

Rules

💼 Configurations enabled in. ✅ Set in the recommended configuration.

Name Description 💼
no-phantom-dependencies Make sure no phantom dependencies are used in your project.

LICENSE

MIT

Package Rankings
Top 44.94% on Npmjs.org
Badges
Extracted from project README
NPM version PRs Welcome License