# eslint-plugin-forbidden-package

> An eslint rule to explicitly blacklist packages.

Latest version **0.0.1** (published 2020-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-forbidden-package
pnpm add eslint-plugin-forbidden-package
yarn add eslint-plugin-forbidden-package
bun add eslint-plugin-forbidden-package
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-02-19 |
| First published | 2020-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tymko Tecca |
| Maintainers | krosantos |
| Keywords | eslint, eslintplugin, opinionated, import, packages |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-forbidden-package
- Repository: git@github.com:Krosantos/eslint-plugin-forbidden-package
- npm.io page: https://npm.io/package/eslint-plugin-forbidden-package

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2020-02-19

## README

# eslint-plugin-forbidden-package
DO NOT IMPORT THAT WHICH IS... *FORBIDDEN*.

An eslint plugin (really, just a rule) for explicitly yelling when someone imports blacklisted libraries/packages directly. Now when people import `xDate` directly, instead of a wrapped/abstracted library, you can yell at 'em. This is hacky. It's set up to not do anything without settings.

Usage like so: *(pretend you're in an `.eslintrc`)*

```javascript
{
	"plugins": ["forbidden-package"],
	"rules": {
		"forbidden-package/no-forbidden-package":["error", ["moment", "immutable", "xDate", "styled-components"]]
	}
}
```

On the future todo list -- get this ready to warn/error separately.

---
_Source: https://npm.io/package/eslint-plugin-forbidden-package · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
