0.0.2 • Published 4 years ago
eslint-plugin-wxmp
Licence
ISC
Version
0.0.2
Deps
1
Size
5 kB
Vulns
0
Weekly
0
eslint-plugin-wxmp
微信小程序eslint插件
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-wxmp:
npm install eslint-plugin-wxmp --save-dev
Usage
Add wxmp to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"wxmp"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"wxmp/disable-wx-api": [
2,
{
"list": ["setTopBarText", "nextTick"]
}
]
}
}
Supported Rules
- Fill in provided rules here