8
0
Pārlūkot izejas kodu

Turn JSHint browser setting to false.

Szymon Cofalik 9 gadi atpakaļ
vecāks
revīzija
19a7844027

+ 0 - 1
packages/ckeditor5-ui/.jshintrc

@@ -1,5 +1,4 @@
 {
-  "browser": true,
   "esnext": true,
   "immed": true,
   "loopfunc": true,

+ 2 - 0
packages/ckeditor5-ui/src/editorui/editoruiview.js

@@ -3,6 +3,8 @@
  * For licensing, see LICENSE.md.
  */
 
+/* globals document */
+
 import View from '../view.js';
 import Template from '../template.js';
 

+ 2 - 0
packages/ckeditor5-ui/src/iconmanager/iconmanagerview.js

@@ -3,6 +3,8 @@
  * For licensing, see LICENSE.md.
  */
 
+/* globals document */
+
 import View from '../view.js';
 import Template from '../template.js';
 

+ 0 - 1
packages/ckeditor5-ui/tests/.jshintrc

@@ -1,5 +1,4 @@
 {
-  "browser": true,
   "esnext": true,
   "expr": true,
   "immed": true,

+ 2 - 0
packages/ckeditor5-ui/tests/_utils-tests/utils.js

@@ -3,6 +3,8 @@
  * For licensing, see LICENSE.md.
  */
 
+/* globals document */
+
 import testUtils from '/tests/ui/_utils/utils.js';
 
 describe( 'utils', () => {

+ 2 - 0
packages/ckeditor5-ui/tests/_utils/utils.js

@@ -3,6 +3,8 @@
  * For licensing, see LICENSE.md.
  */
 
+/* globals document */
+
 import View from '/ckeditor5/ui/view.js';
 import Controller from '/ckeditor5/ui/controller.js';
 

+ 1 - 0
packages/ckeditor5-ui/tests/controller.js

@@ -3,6 +3,7 @@
  * For licensing, see LICENSE.md.
  */
 
+/* globals document */
 /* bender-tags: ui */
 
 import testUtils from '/tests/core/_utils/utils.js';

+ 1 - 0
packages/ckeditor5-ui/tests/controllercollection.js

@@ -3,6 +3,7 @@
  * For licensing, see LICENSE.md.
  */
 
+/* globals document */
 /* bender-tags: ui */
 
 import testUtils from '/tests/core/_utils/utils.js';

+ 1 - 1
packages/ckeditor5-ui/tests/domemittermixin.js

@@ -3,7 +3,7 @@
  * For licensing, see LICENSE.md.
  */
 
-/* global document, Event, MouseEvent */
+/* globals document, window, Event, MouseEvent */
 /* bender-tags: ui */
 
 import testUtils from '/tests/core/_utils/utils.js';

+ 1 - 0
packages/ckeditor5-ui/tests/editableui/editableui.js

@@ -3,6 +3,7 @@
  * For licensing, see LICENSE.md.
  */
 
+/* globals document */
 /* bender-tags: editable */
 
 import StandardEditor from '/ckeditor5/core/editor/standardeditor.js';

+ 1 - 0
packages/ckeditor5-ui/tests/editableui/editableuiview.js

@@ -3,6 +3,7 @@
  * For licensing, see LICENSE.md.
  */
 
+/* globals document */
 /* bender-tags: editable */
 
 import EditableUI from '/ckeditor5/ui/editableui/editableui.js';

+ 1 - 0
packages/ckeditor5-ui/tests/editableui/inline/inlineeditableuiview.js

@@ -3,6 +3,7 @@
  * For licensing, see LICENSE.md.
  */
 
+/* globals document */
 /* bender-tags: editable */
 
 import EditableUI from '/ckeditor5/ui/editableui/editableui.js';

+ 2 - 0
packages/ckeditor5-ui/tests/editorui/editoruiview.js

@@ -3,6 +3,8 @@
  * For licensing, see LICENSE.md.
  */
 
+/* globals document */
+
 import EditorUIView from '/ckeditor5/ui/editorui/editoruiview.js';
 
 describe( 'EditorUIView', () => {

+ 1 - 1
packages/ckeditor5-ui/tests/template.js

@@ -4,7 +4,7 @@
  */
 
 /* bender-tags: ui */
-/* global HTMLElement */
+/* globals HTMLElement, Event, document */
 
 import testUtils from '/tests/core/_utils/utils.js';
 import Template from '/ckeditor5/ui/template.js';