eslint-plugin-peaks
v0.0.2
Published
custom eslint rules for Peaks
Maintainers
Readme
eslint-plugin-peaks
Peaks 项目的自定义 ESLint 规则插件。
特性
- 为 Peaks 项目提供最佳实践和代码风格约束
- 当前包含:
no-http-url:禁止使用http://URL(推荐使用https://)
安装
使用 npm:
npm install --save-dev eslint-plugin-peaks使用 yarn:
yarn add --dev eslint-plugin-peaks使用 pnpm:
pnpm add --save-dev eslint-plugin-peaks使用方法
在 ESLint 配置文件的 plugins 字段中添加 peaks,并启用所需规则:
{
"plugins": ["peaks"],
"rules": {
"peaks/no-http-url": "error"
}
}或直接使用推荐配置:
{
"extends": ["plugin:peaks/recommended"]
}规则列表
| 规则名 | 说明 |
| ----------- | ---------------------- |
| no-http-url | 禁止使用 http:// URL |
详细用法见 docs/rules/no-http-url.md。
贡献
欢迎贡献!请在 GitHub 提交 issue 或 pull request。
许可证
MIT
作者: Mark SquabbyZ ([email protected]) 贡献者: 朱海峰 ([email protected])
