瀏覽代碼

lint/style-check misc config js files in project root

Adam Shaw 12 年之前
父節點
當前提交
d4eb825d69
共有 3 個文件被更改,包括 8 次插入6 次删除
  1. 2 4
      Gruntfile.js
  2. 3 1
      jscs.conf.js
  3. 3 1
      jshint.conf.js

+ 2 - 4
Gruntfile.js

@@ -311,11 +311,9 @@ module.exports = function(grunt) {
 
 	grunt.registerTask('check', 'Lint and check code style', [
 		'jscs',
-		'jshint:srcModules',
-		'jshint:srcLanguages',
+		'jshint:srcModules', // so we can fix most quality errors in their original files
 		'lumbar:build',
-		'jshint:builtModules',
-		'jshint:tests',
+		'jshint' // will run srcModules again but oh well
 	]);
 
 	// configs located elsewhere

+ 3 - 1
jscs.conf.js

@@ -43,6 +43,8 @@ module.exports = {
 			maximumLineLength: 120
 		},
 		src: 'tests/automated/*.js'
-	}
+	},
+
+	misc: '*.js' // config files in root
 
 };

+ 3 - 1
jshint.conf.js

@@ -39,6 +39,8 @@ module.exports = {
 
 	srcLanguages: 'lang/*.js',
 
-	tests: 'tests/automated/*.js'
+	tests: 'tests/automated/*.js',
+
+	misc: '*.js' // config files in root
 
 };