@@ -15,7 +15,8 @@ module.exports = function( grunt ) {
1515 var fs = require ( "fs" ) ,
1616 gzip = require ( "gzip-js" ) ,
1717 isTravis = process . env . TRAVIS ,
18- travisBrowsers = process . env . BROWSERS && process . env . BROWSERS . split ( "," ) ;
18+ travisBrowsers = process . env . BROWSERS && process . env . BROWSERS . split ( "," ) ,
19+ CLIEngine = require ( "eslint" ) . CLIEngine ;
1920
2021 if ( ! grunt . option ( "filename" ) ) {
2122 grunt . option ( "filename" , "jquery.js" ) ;
@@ -77,9 +78,7 @@ module.exports = function( grunt ) {
7778 } ,
7879 eslint : {
7980 options : {
80-
81- // See https://github.com/sindresorhus/grunt-eslint/issues/119
82- quiet : true
81+ maxWarnings : 0
8382 } ,
8483
8584 // We have to explicitly declare "src" property otherwise "newer"
@@ -88,7 +87,18 @@ module.exports = function( grunt ) {
8887 src : [ "dist/jquery.js" , "dist/jquery.min.js" ]
8988 } ,
9089 dev : {
91- src : [ "src/**/*.js" , "Gruntfile.js" , "test/**/*.js" , "build/**/*.js" ]
90+ src : [
91+ "src/**/*.js" ,
92+ "Gruntfile.js" ,
93+ "test/**/*.js" ,
94+ "build/**/*.js" ,
95+
96+ // Ignore files from .eslintignore
97+ // See https://github.com/sindresorhus/grunt-eslint/issues/119
98+ ...new CLIEngine ( )
99+ . getConfigForFile ( "Gruntfile.js" )
100+ . ignorePatterns . map ( ( p ) => `!${ p } ` )
101+ ]
92102 }
93103 } ,
94104 testswarm : {
0 commit comments