Sfoglia il codice sorgente

Use default .jscsrc and .jshintrc confing files. It means that if any subdirectory will contain config file it will be used.

Piotr Jasiun 10 anni fa
parent
commit
aa1cb1ab2d
2 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 3 1
      dev/tasks/jscs.js
  2. 3 1
      dev/tasks/jshint.js

+ 3 - 1
dev/tasks/jscs.js

@@ -7,7 +7,9 @@ var tools = require( './utils/tools' );
 module.exports = function( grunt ) {
 	tools.setupMultitaskConfig( grunt, {
 		task: 'jscs',
-		defaultOptions: grunt.file.readJSON( '.jscsrc' ),
+		defaultOptions: {
+				config: true
+			},
 		addGitIgnore: 'excludeFiles',
 		targets: {
 			all: function() {

+ 3 - 1
dev/tasks/jshint.js

@@ -7,7 +7,9 @@ var tools = require( './utils/tools' );
 module.exports = function( grunt ) {
 	tools.setupMultitaskConfig( grunt, {
 		task: 'jshint',
-		defaultOptions: grunt.file.readJSON( '.jshintrc' ),
+		defaultOptions: {
+				jshintrc: true
+			},
 		addGitIgnore: 'ignores',
 		targets: {
 			all: function() {