eslint-plugin-no-null
ESLint rule to disallow null
Last updated 4 years ago by nene .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-plugin-no-null 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

3 Versions

  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2017 © taobao.org |