浏览代码

Moved the jshint configurations to a separated json file. In this way IDEs can read from it and auto-configure.

fredck 11 年之前
父节点
当前提交
d37e1d6601

+ 4 - 0
packages/ckeditor5-utils/dev/tasks/jshint-config.json

@@ -0,0 +1,4 @@
+{
+	"globalstrict": true,
+	"validthis": true
+}

+ 1 - 6
packages/ckeditor5-utils/dev/tasks/jshint.js

@@ -7,7 +7,7 @@ var tools = require( './res/tools' );
 module.exports = function( grunt ) {
 	// Point to the default configurations.
 	var config = {
-		options: defaultConfig
+		options: grunt.file.readJSON( 'dev/tasks/jshint-config.json' )
 	};
 
 	// Create the appropriate task target.
@@ -24,8 +24,3 @@ module.exports = function( grunt ) {
 
 	grunt.loadNpmTasks( 'grunt-contrib-jshint' );
 };
-
-var defaultConfig = {
-	'globalstrict': true,
-	'validthis': true
-};