From 44906a83d28a81f0107f8418a430db7e040a776b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Wed, 31 May 2023 18:55:29 +0200 Subject: [PATCH] Build: Make the `eslint:dev` task not lint the `dist/` folder 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 --- Gruntfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index f24e8a4485..c5e238ced2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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" ] } },