Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yyz945947732/eslint-plugin-phantom-dependencies
Make sure no phantom dependencies are used in your project
https://github.com/yyz945947732/eslint-plugin-phantom-dependencies
dependencies eslint eslint-plugin eslintplugin ghost ghost-dependencies phantom-dependencies
Last synced: 28 days ago
JSON representation
Make sure no phantom dependencies are used in your project
- Host: GitHub
- URL: https://github.com/yyz945947732/eslint-plugin-phantom-dependencies
- Owner: yyz945947732
- License: mit
- Created: 2023-10-24T09:20:39.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-01T11:56:37.000Z (4 months ago)
- Last Synced: 2024-09-29T01:04:23.849Z (about 1 month ago)
- Topics: dependencies, eslint, eslint-plugin, eslintplugin, ghost, ghost-dependencies, phantom-dependencies
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eslint-plugin-phantom-dependencies
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-phantom-dependencies
Make sure no 👻 [phantom dependencies](https://datacadamia.com/code/shipping/phantom) are used in your project.
![CI](https://github.com/yyz945947732/eslint-plugin-phantom-dependencies/actions/workflows/test.yml/badge.svg)
[![NPM version](https://img.shields.io/npm/v/eslint-plugin-phantom-dependencies.svg?logo=npm&logoColor=fff)](https://npmjs.org/package/eslint-plugin-phantom-dependencies)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/yyz945947732/eslint-plugin-phantom-dependencies/pulls)
[![License](https://img.shields.io/github/license/yyz945947732/eslint-plugin-phantom-dependencies.svg?style=flat)](https://github.com/yyz945947732/eslint-plugin-phantom-dependencies/blob/master/LICENSE)## Installation
You'll first need to install [ESLint](https://eslint.org/):
```sh
npm i eslint --save-dev
```Next, install `eslint-plugin-phantom-dependencies`:
```sh
npm install eslint-plugin-phantom-dependencies --save-dev
```## Usage
On your `.eslintrc` file extend the plugin's recommended configuration:
```json
{
"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:
```json
{
"plugins": ["phantom-dependencies"]
}
```Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"phantom-dependencies/no-phantom-dependencies": "error"
}
}
```## Rules
💼 Configurations enabled in.\
✅ Set in the `recommended` configuration.| Name | Description | 💼 |
| :--------------------------------------------------------------- | :---------------------------------------------------------- | :-- |
| [no-phantom-dependencies](docs/rules/no-phantom-dependencies.md) | Make sure no phantom dependencies are used in your project. | ✅ |## LICENSE
[MIT](https://github.com/yyz945947732/eslint-plugin-phantom-dependencies/blob/master/LICENSE)