eslint-plugin-no-null

1.0.2 • Public • Published

eslint-plugin-no-null

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

Installation

After having installed ESLint, install the rule:

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

Configuration

Add no-null to your .eslintrc:

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

Readme

Keywords

Package Sidebar

Install

npm i eslint-plugin-no-null

Weekly Downloads

85,432

Version

1.0.2

License

MIT

Last publish

Collaborators

  • nene