You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constMESSAGE='Do not use unguarded document references. Please see the following guide for more infromation: http://github.com/chadhietala/ember-best-practices/files/guides/no-unguarded-document.md';
7
13
14
+
/**
15
+
* Determines if the current node is a document reference.
16
+
* @param {ASTNode} node The identifier node.
17
+
* @returns {Boolean} Returns true if a document reference is found, else false.
constMESSAGE='Do not use unguarded window references. Please see the following guide for more infromation: http://github.com/chadhietala/ember-best-practices/files/guides/no-unguarded-window.md';
7
13
14
+
/**
15
+
* Determines if the current node is a window reference.
16
+
* @param {ASTNode} node The identifier node.
17
+
* @returns {Boolean} Returns true if a window reference is found, else false.
18
+
*/
8
19
functionisWindowReference(node){
9
20
returnget(node,'object.name')==='window';
10
21
}
11
22
12
23
module.exports={
24
+
docs: {
25
+
description: 'Disallow the use of unguarded document references',
0 commit comments