# eslint-plugin-no-null

> ESLint rule to disallow null

Latest version **1.0.2** (published 2016-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-no-null
pnpm add eslint-plugin-no-null
yarn add eslint-plugin-no-null
bun add eslint-plugin-no-null
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-09-13 |
| First published | 2016-09-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=5.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 43 |
| Author | Rene Saarsoo |
| Maintainers | nene |
| Keywords | eslint, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-no-null
- Repository: https://github.com/nene/eslint-plugin-no-null
- Issues: https://github.com/nene/eslint-plugin-no-null/issues
- npm.io page: https://npm.io/package/eslint-plugin-no-null

## 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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-09-13
- 1.0.1 — 2016-09-13
- 1.0.0 — 2016-09-13

## README

# eslint-plugin-no-null

ESLint rule to disallow null literals, to encourage using undefined instead.

# Installation

After having installed [ESLint](https://www.github.com/eslint/eslint), install the rule:

```bash
$ npm install eslint-plugin-no-null --save-dev
```

# Configuration

Add `no-null` to your `.eslintrc`:

```json
{
  "plugins": [
    "no-null"
  ],
  "rules": {
    "no-null/no-null": 2
  }
}
```

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