eslint plugin for wx miniprogram
You'll first need to install ESLint:
$ yarn add eslint --dev
Next, install eslint-plugin-ahaha-miniprogram
:
$ yarn add eslint-plugin-ahaha-miniprogram --dev
Add ahaha-miniprogram
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["ahaha-miniprogram"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"ahaha-miniprogram/rule-name": ["error", { "config": "foo" }]
}
}