Browse Source

Added a few jshint predefined configs.

fredck 11 years ago
parent
commit
1b7dc9fa2b
2 changed files with 5 additions and 1 deletions
  1. 1 0
      packages/ckeditor5-ui/dev/tasks/jshint.js
  2. 4 1
      packages/ckeditor5-ui/gruntfile.js

+ 1 - 0
packages/ckeditor5-ui/dev/tasks/jshint.js

@@ -12,4 +12,5 @@ module.exports = function( grunt ) {
 };
 };
 
 
 var defaultConfig = {
 var defaultConfig = {
+	'globalstrict': true
 };
 };

+ 4 - 1
packages/ckeditor5-ui/gruntfile.js

@@ -6,7 +6,10 @@ module.exports = function( grunt ) {
 
 
 		jshint: {
 		jshint: {
 			options: {
 			options: {
-				'ignores': lintIgnores
+				'ignores': lintIgnores,
+				'predef': [
+					'module'
+				]
 			}
 			}
 		},
 		},