0.2.0 • Published 2 years ago

@hao360/eslint-plugin-cube v0.2.0

Weekly downloads
1
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-cube

The cube rule validation plugin of eslint.

配置

module.exports = {
  plugins: [
    "@hao360/eslint-plugin-cube"
  ],
  rules: {
    '@hao360/cube/no-cube-globals',
    '@hao360/cube/no-cube-tags',
    '@hao360/cube/no-cube-attributes',
    '@hao360/cube/no-cube-eval',
    '@hao360/cube/no-cube-dynamic'
  }
}

自定义规则

命名约定:

  • 如果你的规则是禁止什么,加前缀 no-,比如 no-eval 禁用 eval(),no-debugger禁用debugger
  • 如果你规则是强制包含什么,使用一个简短的名称,不带特殊的前缀。
  • 在单词之间使用连字符

规则说明在docs/rules目录。

说明

当使用html标签规则时,需要配置parser为eslint-html-parser

测试

npm run test
0.2.0

2 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago