eslint-plugin-no-null

ESLint rule to disallow null

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
eslint-plugin-no-null
3901.0.26 years ago6 years agoMinified + gzip package size for eslint-plugin-no-null in KB

Readme

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