0.0.3 ⢠Published 2 years ago
eslint-plugin-weapp2 v0.0.3
eslint-plugin-weapp2
a weapp eslint
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-weapp2
:
npm install eslint eslint-plugin-weapp2 --save-dev
# pnpm install eslint eslint-plugin-weapp2 --save-dev
Usage
Add weapp
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"extends": ["eslint:recommended", "plugin:weapp2/recommended"]
}
Rules
š¼ Configurations enabled in.\
ā
Set in the recommended
configuration.\
š§ Automatically fixable by the --fix
CLI option.
Name | Description | š¼ | š§ |
---|---|---|---|
component | ę£ę„ē»ä»¶ē properties å±ę§ęÆå¦č§č | ā | š§ |