0.0.2 • Published 4 years ago
eslint-plugin-wxmp v0.0.2
eslint-plugin-wxmp
微信小程序eslint插件
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-wxmp:
npm install eslint-plugin-wxmp --save-devUsage
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