eslint-plugin-mysteel-check
v0.2.8
Published
mysteel自定义eslint规则
Downloads
4
Maintainers
Readme
Mysteel Check
mysteel自定义eslint规则
包含规则
mysteel-check/no-http
: 禁止使用http协议
使用方法
安装
npm install eslint-plugin-mysteel-check --save-dev
配置
在项目根目录下创建.eslintrc.js
文件,内容如下:
module.exports = {
plugins: ['mysteel-check'],
rules: {
// 自定义规则
'mysteel-check/no-http': 'error',
},
};
关闭规则
// eslint-disable-next-line mysteel-check/no-http
const url = 'http://www.mysteel.com';