0.0.2 • Published 2 years ago
eslint-plugin-yushu v0.0.2
eslint-plugin-yushu
Eslint plugin for YuShu system
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-yushu:
npm install eslint-plugin-yushu --save-devUsage
Add yushu to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"yushu"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"yushu/rule-name": 2
}
}Rules
| Name | Description |
|---|---|
| specified-todo-comment | Rule to enforce the content of todo comments |