0.0.3 โข Published 3 years ago
@yaoxfly/eslint-plugin-expand v0.0.3
@yaoxfly/eslint-plugin-expand
Custom some useful rulesใ
Installation
You'll first need to install ESLint:
npm install eslint --save-devNext, install @yaoxfly/eslint-plugin-expand:
npm install @yaoxfly/eslint-plugin-expand --save-devUsage
Add @yaoxfly/eslint-plugin-expand to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin-prefix:
{
plugins: [
"@yaoxfly/expand"
]
}You can inherit all the rules
extends: [
'plugin:@yaoxfly/expand/recommended'
],or configure the rules you want to use under the rules section.
{
rules: {
"@yaoxfly/expand/rule-name": 2 //0:close 1:warn 2 error
}
}Rules
๐ผ Configurations enabled in.\
โ
Set in the recommended configuration.\
๐ง Automatically fixable by the --fix CLI option.
| Name | Description | ๐ผ | ๐ง |
|---|---|---|---|
| refs-judage-null | this.$refs.xx need to judge null | โ | ๐ง |