]> source.dussan.org Git - jquery.git/commitdiff
Build: Lint the minified jQuery file as well
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 21 Jan 2020 12:51:03 +0000 (13:51 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Jan 2020 12:51:03 +0000 (13:51 +0100)
While we have absolutely no style-related expectations to our minified file,
we do care that it's valid ES 5.1. This is now verified.

Fixes gh-3075
Closes gh-4594

.eslintignore
dist/.eslintrc.json

index 61eddeb3510ed04fd19a7d38f31de3520ff6d4cc..6bc5c48b6f0f8e4d87d5c4637e301f13f439fcbf 100644 (file)
@@ -3,6 +3,7 @@ node_modules
 *.min.js
 dist/**
 !dist/jquery.js
+!dist/jquery.min.js
 test/data/jquery-1.9.1.js
 test/data/badcall.js
 test/data/badjson.js
index bf60c4c18e7276fbeedf1847260bfb077d63e94d..c2259f1499bcf9ce03ad88a31b1852c39264e187 100644 (file)
@@ -1,21 +1,26 @@
 {
        "root": true,
 
-       "extends": "../.eslintrc-browser.json",
-
        "parserOptions": {
                "ecmaVersion": 5,
                "sourceType": "script"
        },
 
-       "rules": {
-               // That is okay for the built version
-               "no-multiple-empty-lines": "off"
-       },
-
        "globals": {
                "define": false,
                "module": true,
                "Symbol": false
-       }
+       },
+
+       "overrides": [
+               {
+                       "files": "jquery.js",
+                       "extends": "../.eslintrc-browser.json",
+
+                       "rules": {
+                               // That is okay for the built version
+                               "no-multiple-empty-lines": "off"
+                       }
+               }
+       ]
 }