eslint-plugin-ddmcsc
v1.0.0
Published
normal eslint for ddmc supply chain
Downloads
2
Maintainers
Readme
eslint-plugin-ddmcsc
normal eslint for ddmc supply chain
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-ddmcsc
:
npm install eslint-plugin-ddmcsc --save-dev
Usage
required: { node: '12.x || 14.x || >= 16' }
Add ddmcsc
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"ddmcsc"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"ddmcsc/rule-name": 2
}
}
Supported Rules
- Fill in provided rules here
.
├── README.md
├── docs // 使用文档
│ └── rules // 所有规则的文档
│ └── settimeout-no-number.md // 具体规则文档
├── lib // eslint 规则开发
│ ├── index.js 引入+导出rules文件夹的规则
│ └── rules // 此目录下可以构建多个规则
│ └── settimeout-no-number.js // 规则细节
├── package.json
└── tests // 单元测试
└── lib
└── rules
└── settimeout-no-number.js // 测试该规则的文件