eslint-plugin-optional-chaining-check

1.0.4 • Public • Published

eslint-plugin-null

setData时,对传入参数进行有无可选链用法判断

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-null:

$ npm install eslint-plugin-optional-chaining-check --save-dev

Usage

Add optional-chaining-check to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "optional-chaining-check"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "optional-chaining-check/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here

Package Sidebar

Install

npm i eslint-plugin-optional-chaining-check

Weekly Downloads

3

Version

1.0.4

License

ISC

Unpacked Size

7.61 kB

Total Files

6

Last publish

Collaborators

  • zhou_fan