File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,12 @@ module.exports = function lint() {
6262 const loadFormatter = eslint . loadFormatter ( 'stylish' ) ;
6363
6464 return Promise . all ( [ lintFiles , loadFormatter ] ) . then ( ( [ results , formatter ] ) => {
65- if ( results . errorCount > 0 || results . warningCount > 0 ) {
66- fancyLog ( formatter . format ( results ) ) ;
67- throw new Error ( 'ESLintError' ) ;
65+ for ( let i = 0 ; i < results . length ; i ++ ) {
66+ const lintResult = results [ i ] ;
67+ if ( lintResult . warningCount > 0 || lintResult . errorCount > 0 || lintResult . fatalErrorCount > 0 ) {
68+ fancyLog ( formatter . format ( results ) ) ;
69+ throw new Error ( 'ESLintError' ) ;
70+ }
6871 }
6972 } ) ;
7073} ;
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ function createReleaseTask(level) {
8686 }
8787
8888 return gulp . series (
89- doRelease ,
90- prepareNextRelease
89+ doRelease ,
90+ prepareNextRelease ,
9191 ) ;
9292}
9393
You can’t perform that action at this time.
0 commit comments