1.0.0-beta.1 • Published 3 years ago
eslint-plugin-hot-click v1.0.0-beta.1
eslint-plugin-hot-click
给特定元素添加打点信息
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-hot-click:
npm install eslint-plugin-hot-click --save-devUsage
Add hot-click to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"hot-click"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"hot-click/rule-name": 2
}
}Rules
TODO: Run eslint-doc-generator to generate the rules list.
说明
该插件主要用于检测代码中a标签、button标签及Dialog组件中的okProps属性和cancelProps中是否存在打点信息,没有的话提供修复方案
1.0.0-beta.1
3 years ago