mtyx-custom-eslint-plugin
v1.0.1
Published
有关微信小程序的一些规则,比如setData使用可选链时必须||一个值
Maintainers
Readme
eslint-plugin-null
setData时,对传入参数进行有无可选链用法判断
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-null:
$ npm install eslint-plugin-optional-chaining-check --save-devUsage
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
