# tslint-import-blacklist-with-ignore-files

> Custom rule for TSLint to blacklist imports

Latest version **0.0.1** (published 2020-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install tslint-import-blacklist-with-ignore-files
pnpm add tslint-import-blacklist-with-ignore-files
yarn add tslint-import-blacklist-with-ignore-files
bun add tslint-import-blacklist-with-ignore-files
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-01-10 |
| First published | 2020-01-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ariel Henryson |
| Maintainers | arielhenryson |
| Keywords | tslint, custom-tslint-rule, tslint-import-blacklist |

## Links

- npm: https://www.npmjs.com/package/tslint-import-blacklist-with-ignore-files
- Repository: https://github.com/arielhenryson/tslint-import-blacklist-with-ignore-files
- Homepage: https://github.com/arielhenryson/tslint-import-blacklist-with-ignore-files#readme
- Issues: https://github.com/arielhenryson/tslint-import-blacklist-with-ignore-files/issues
- npm.io page: https://npm.io/package/tslint-import-blacklist-with-ignore-files

## Dependencies (2)

- [tsutils](https://npm.io/package/tsutils.md) ^3.17.1
- [glob-to-regexp](https://npm.io/package/glob-to-regexp.md) ^0.4.1

## 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-01-10
- 0.0.1-alpha7 — 2020-01-08
- 0.0.1-alpha5 — 2020-01-08
- 0.0.1-alpha4 — 2020-01-08
- 0.0.1-alpha3 — 2020-01-08
- 0.0.1-alpha2 — 2020-01-08
- 0.0.1-alpha1 — 2020-01-08

## README

# tslint-import-blacklist-with-ignore-files
Custom rule for TSLint to blacklist imports but let you ignore specific files

Check out this blog post about this rule

https://medium.com/ariel.henryson/how-to-prevent-import-of-some-modules-with-tslint-4786c9411cd7


## Install
```bash
npm install --save-dev tslint-import-blacklist-with-ignore-files
```

## Configuration
Update your `tslint.json` config file, adding the new rules directory and the new rule  


### Config Examples
```json
 "import-blacklist-with-ignore-files": [
    true,
    {
        "imports": [
            {
                "name": ["someNPM"],
                "ignore": ["main.ts"]
            },
            {
                "name": ["someOtherNPM"],
                "ignore": ["*.spec.ts"]
             }
        ]
    }
 ]
```

---
_Source: https://npm.io/package/tslint-import-blacklist-with-ignore-files · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
