diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2023-05-31 18:55:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-31 18:55:29 +0200 |
commit | 44906a83d28a81f0107f8418a430db7e040a776b (patch) | |
tree | f9c934f8f6dd35f049bdcfb9a8564e11f865b39f | |
parent | fd6ffc5eb2c12562f2656d2f33865448420252be (diff) | |
download | jquery-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.js | 6 |
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" ] } }, |