File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -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"
@@ -89,6 +88,14 @@ module.exports = function( grunt ) {
8988 } ,
9089 dev : {
9190 src : [ "src/**/*.js" , "Gruntfile.js" , "test/**/*.js" , "build/**/*.js" ]
91+
92+ // Ignore files from .eslintignore
93+ // See https://github.com/sindresorhus/grunt-eslint/issues/119
94+ . concat (
95+ new CLIEngine ( )
96+ . getConfigForFile ( "Gruntfile.js" )
97+ . ignorePatterns . map ( p => "!" + p )
98+ )
9299 }
93100 } ,
94101 testswarm : {
You can’t perform that action at this time.
0 commit comments