0.2.8 • Published 12 months ago

eslint-plugin-mysteel-check v0.2.8

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

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';