eslint-plugin-no-null

2018-12-07 admin

eslint-plugin-no-null是什么

什么是eslint-plugin-no-null,ESLint rule to disallow null

eslint-plugin-no-null使用教程帮助文档

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

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-47510.html

文章标题:eslint-plugin-no-null

回到顶部