var fs = require( "fs" ),
gzip = require( "gzip-js" ),
isTravis = process.env.TRAVIS,
- travisBrowsers = process.env.BROWSERS && process.env.BROWSERS.split( "," );
+ travisBrowsers = process.env.BROWSERS && process.env.BROWSERS.split( "," ),
+ CLIEngine = require( "eslint" ).CLIEngine;
if ( !grunt.option( "filename" ) ) {
grunt.option( "filename", "jquery.js" );
},
eslint: {
options: {
-
- // See https://github.com/sindresorhus/grunt-eslint/issues/119
- quiet: true
+ maxWarnings: 0
},
// We have to explicitly declare "src" property otherwise "newer"
src: [ "dist/jquery.js", "dist/jquery.min.js" ]
},
dev: {
- src: [ "src/**/*.js", "Gruntfile.js", "test/**/*.js", "build/**/*.js" ]
+ src: [
+ "src/**/*.js",
+ "Gruntfile.js",
+ "test/**/*.js",
+ "build/**/*.js",
+
+ // Ignore files from .eslintignore
+ // See https://github.com/sindresorhus/grunt-eslint/issues/119
+ ...new CLIEngine()
+ .getConfigForFile( "Gruntfile.js" )
+ .ignorePatterns.map( ( p ) => `!${ p }` )
+ ]
}
},
testswarm: {