Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 414 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 414 Bytes

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
  }
}