0.0.7 • Published 7 years ago

eslint-plugin-cmos v0.0.7

Weekly downloads
13
License
ISC
Repository
-
Last release
7 years ago

eslint-plugin-cmos

安装

$ npm install eslint -g
$ npm isntall eslint-plugin-cmos -D

设置

添加plugins:

{
  "plugins": [
    "cmos"
  ]
}

添加需要的检测:

{
  "rules": {
    "cmos/no-invalid-define": 2,
    "cmos/no-multiple-define": 2,
    "cmos/no-named-define": 2,
    "cmos/no-commonjs-wrapper": 2,
    "cmos/no-object-define": 1
  }
}

规则详情

RuleDescription
no-invalid-require禁止无效的 require
no-assign-exports禁止使用commonjs中的exports,避免出口变量赋值
no-js-extension禁止使用.js扩展
no-assign-require禁止使用 require 或者 window.require
amd-function-arity本规则旨在确保AMD回调有正确数量的参数,以避免混淆与可维护性的问题
no-ajax禁止
no-animate禁止
no-attr禁止
no-bind禁止
no-class禁止
no-clone禁止
no-closest禁止
no-css禁止
no-data禁止
no-each禁止
no-is禁止
no-proxy禁止
0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago