Skip to content

nene/eslint-plugin-no-null

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ESLint rule to disallow null literals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published