Bladeren bron

Added separate .jshintrc file in the tests directory. Remove global declarations from files.

Piotrek Koszuliński 10 jaren geleden
bovenliggende
commit
d7866cd777
6 gewijzigde bestanden met toevoegingen van 32 en 12 verwijderingen
  1. 1 5
      .jshintrc
  2. 30 0
      tests/.jshintrc
  3. 0 2
      tests/amd/amd.js
  4. 1 1
      tests/ckeditor/basepath.js
  5. 0 2
      tests/ckeditor/ckeditor.js
  6. 0 2
      tests/plugin/plugin.js

+ 1 - 5
.jshintrc

@@ -9,9 +9,5 @@
 	"unused": true,
 	"strict": true,
 
-	"globalstrict": true,
-
-	"globals": {
-		"bender": false
-	}
+	"globalstrict": true
 }

+ 30 - 0
tests/.jshintrc

@@ -0,0 +1,30 @@
+{
+	"esnext": true,
+	"expr": true,
+
+	"immed": true,
+	"latedef": "nofunc",
+	"noarg": true,
+	"nonbsp": true,
+	"undef": true,
+	"unused": true,
+	"strict": true,
+
+	"globalstrict": true,
+
+	"globals": {
+		"CKEDITOR": false,
+		"bender": false,
+		"describe": false,
+		"it": false,
+		"before": false,
+		"beforeEach": false,
+		"expect": false,
+		"bender": false,
+		"sinon": false,
+		"setTimeout": false
+	},
+	"predef": [
+		"-Promise"
+	]
+}

+ 0 - 2
tests/amd/amd.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-/* globals describe, it, expect, CKEDITOR */
-
 'use strict';
 
 CKEDITOR.define( 'testModule', [ 'ckeditor' ], function( ckeditor ) {

+ 1 - 1
tests/ckeditor/basepath.js

@@ -3,7 +3,7 @@
  * For licensing, see LICENSE.md.
  */
 
-/* globals beforeEach, describe, it, expect, window, document */
+/* globals window, document */
 
 'use strict';
 

+ 0 - 2
tests/ckeditor/ckeditor.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-/* globals describe, it, expect */
-
 'use strict';
 
 var modules = bender.amd.require( 'ckeditor', 'ckeditor-core' );

+ 0 - 2
tests/plugin/plugin.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-/* globals describe, it, expect, CKEDITOR */
-
 'use strict';
 
 describe( 'CKEDITOR.require()', function() {