eslint-plugin-xlb-eslint
v0.0.8
Published
eslint plugin for xlb
Downloads
4
Maintainers
Readme
eslint-plugin-xlb-eslint
eslint plugin for xlb
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-xlb-eslint:
npm install eslint-plugin-xlb-eslint --save-devUsage
In your configuration file, import the plugin eslint-plugin-xlb-eslint and add xlb-eslint to the plugins key:
import xlb-eslint from "eslint-plugin-xlb-eslint";
export default [
{
plugins: {
xlb-eslint
}
}
];Then configure the rules you want to use under the rules key.
import xlb-eslint from "eslint-plugin-xlb-eslint";
export default [
{
plugins: {
xlb-eslint
},
rules: {
"xlb-eslint/rule-name": "warn"
}
}
];Configurations
| | Name |
| :- | :--------- |
| | recommed |
Rules
⚠️ Configurations set to warn in.
| Name | Description | ⚠️ | | :----------------------------------------------------------------- | :------------------- | :------------------ | | no-excessive-chain-calls | 限制Object链式调用可选链深度 | ![badge-recommed][] | | no-excessive-use-state | 限制组件中 useState 的使用次数 | ![badge-recommed][] |
