eslint-plugin-mysteel-check

0.2.8 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i eslint-plugin-mysteel-check

      Weekly Downloads

      1

      Version

      0.2.8

      License

      MIT

      Unpacked Size

      1.62 kB

      Total Files

      4

      Last publish

      Collaborators

      • gl_mysteel_it_web