eslint-plugin-no-null
v1.0.2
Published
ESLint rule to disallow null
Downloads
506,197
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
}
}