no-define-cc-etc

禁止使用旧式 Cc/Ci/Cu/Cr 定义。这些现在已在全局范围内为所有 chrome 上下文定义。

此规则的错误代码示例:

var Cc = Components.classes;
var Ci = Components.interfaces;
var {Ci: interfaces, Cc: classes, Cu: utils} = Components;
var Cr = Components.results;

此规则的正确代码示例:

const CC = Components.Constructor;