0.0.3 ā€¢ Published 7 months ago

eslint-plugin-phantom-dependencies v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

eslint-plugin-phantom-dependencies

Make sure no šŸ‘» phantom dependencies are used in your project.

CI NPM version PRs Welcome License

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.

NameDescriptionšŸ’¼
no-phantom-dependenciesMake sure no phantom dependencies are used in your project.āœ…

LICENSE

MIT