blob: cb55dabac0f94e15e04a269e2109d2d1fcf00e5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
================
no-define-cc-etc
================
Disallows old-style definitions for Cc/Ci/Cu/Cr. These are now defined globally
for all chrome contexts.
Examples of incorrect code for this rule:
-----------------------------------------
.. code-block:: js
var Cc = Components.classes;
var Ci = Components.interfaces;
var {Ci: interfaces, Cc: classes, Cu: utils} = Components;
var Cr = Components.results;
Examples of correct code for this rule:
---------------------------------------
.. code-block:: js
const CC = Components.Constructor;
|