Procházet zdrojové kódy

Filtering .js files on jshint.

fredck před 11 roky
rodič
revize
1507a63f31
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      packages/ckeditor5-engine/dev/tasks/jshint.js

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

@@ -13,7 +13,9 @@ module.exports = function( grunt ) {
 				return [ '**/*.js' ];
 			},
 			git: function() {
-				return tools.getGitDirtyFiles();
+				return tools.getGitDirtyFiles().filter( function( file ) {
+					return ( /\.js$/ ).test( file );
+				} );
 			}
 		}
 	} );