Browse Source

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

Piotr Jasiun 10 years ago
parent
commit
30eeb19d61

+ 3 - 1
packages/ckeditor5-utils/dev/tasks/jscs.js

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

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

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