aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-01-21 13:51:03 +0100
committerGitHub <noreply@github.com>2020-01-21 13:51:03 +0100
commit89a18de64cec73936507ea9feca24d029edea24f (patch)
tree90f3dfd8b2db3cff573252329a741779ceb0b0e3
parente1fab10911dfe3b93bf8bd5d276e30e6fc69f780 (diff)
downloadjquery-89a18de64cec73936507ea9feca24d029edea24f.tar.gz
jquery-89a18de64cec73936507ea9feca24d029edea24f.zip
Build: Lint the minified jQuery file as well
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
-rw-r--r--.eslintignore1
-rw-r--r--dist/.eslintrc.json21
2 files changed, 14 insertions, 8 deletions
diff --git a/.eslintignore b/.eslintignore
index 61eddeb35..6bc5c48b6 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -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
diff --git a/dist/.eslintrc.json b/dist/.eslintrc.json
index bf60c4c18..c2259f149 100644
--- a/dist/.eslintrc.json
+++ b/dist/.eslintrc.json
@@ -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"
+ }
+ }
+ ]
}