eslint-plugin-tj-rules
v1.0.0
Published
自定义规则
Downloads
72
Maintainers
Readme
eslint-plugin-kebab
校验文件是否是短横线连接
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-kebab
:
npm install eslint-plugin-kebab --save-dev
Usage
In your configuration file, import the plugin eslint-plugin-kebab
and add kebab
to the plugins
key:
import kebab from "eslint-plugin-kebab";
export default [
{
plugins: {
kebab
}
}
];
Then configure the rules you want to use under the rules
key.
import kebab from "eslint-plugin-kebab";
export default [
{
plugins: {
kebab
},
rules: {
"kebab/rule-name": "warn"
}
}
];
Configurations
TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).
Rules
TODO: Run eslint-doc-generator to generate the rules list.