eslint-plugin-weapp2
v0.0.3
Published
a weapp eslint
Downloads
8
Maintainers
Readme
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 属性是否规范 | ✅ | 🔧 |