Przeglądaj źródła

Added a few jshint predefined configs.

fredck 11 lat temu
rodzic
commit
a3e069e84b
2 zmienionych plików z 5 dodań i 1 usunięć
  1. 1 0
      dev/tasks/jshint.js
  2. 4 1
      gruntfile.js

+ 1 - 0
dev/tasks/jshint.js

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

+ 4 - 1
gruntfile.js

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