@yaoxfly/eslint-plugin-expand
v0.0.3
Published
Custom eslint rules
Maintainers
Readme
@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 | ✅ | 🔧 |
