use-documentGlobal

Require .documentGlobal instead of .ownerDocument.defaultView.

Examples of incorrect code for this rule:

aEvent.target.ownerDocument.defaultView;
this.DOMPointNode.ownerDocument.defaultView.getSelection();

Examples of correct code for this rule:

aEvent.target.documentGlobal;
this.DOMPointNode.documentGlobal.getSelection();