Skip to content

Commit

Permalink
Build: Make the eslint:dev task not lint the dist/ folder
Browse files Browse the repository at this point in the history
There was a mistake in paths logic that made the `dist/` folder linted
even in the `eslint:dev` task which is run before the build. Fix that by
explicitly ignoring the `dist/` folder at the end of the file list.

Closes gh-5257
  • Loading branch information
mgol committed May 31, 2023
1 parent fd6ffc5 commit 44906a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gruntfile.js
Expand Up @@ -136,7 +136,11 @@ module.exports = function( grunt ) {
.map( filePath => filePath[ 0 ] === "!" ?
filePath.slice( 1 ) :
`!${ filePath }`
)
),

// Explicitly ignore `dist/` as it could be unignored by
// the above `.eslintignore` parsing.
"!dist/**/*.js"
]
}
},
Expand Down

0 comments on commit 44906a8

Please sign in to comment.