aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2023-05-31 18:55:29 +0200
committerGitHub <noreply@github.com>2023-05-31 18:55:29 +0200
commit44906a83d28a81f0107f8418a430db7e040a776b (patch)
treef9c934f8f6dd35f049bdcfb9a8564e11f865b39f
parentfd6ffc5eb2c12562f2656d2f33865448420252be (diff)
downloadjquery-44906a83d28a81f0107f8418a430db7e040a776b.tar.gz
jquery-44906a83d28a81f0107f8418a430db7e040a776b.zip
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
-rw-r--r--Gruntfile.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index f24e8a448..c5e238ced 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"
]
}
},