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
This commit is contained in:
Michał Gołębiowski-Owczarek 2020-01-21 13:51:03 +01:00 committed by GitHub
parent e1fab10911
commit 89a18de64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 8 deletions

View File

@ -3,6 +3,7 @@ node_modules
*.min.js *.min.js
dist/** dist/**
!dist/jquery.js !dist/jquery.js
!dist/jquery.min.js
test/data/jquery-1.9.1.js test/data/jquery-1.9.1.js
test/data/badcall.js test/data/badcall.js
test/data/badjson.js test/data/badjson.js

19
dist/.eslintrc.json vendored
View File

@ -1,21 +1,26 @@
{ {
"root": true, "root": true,
"extends": "../.eslintrc-browser.json",
"parserOptions": { "parserOptions": {
"ecmaVersion": 5, "ecmaVersion": 5,
"sourceType": "script" "sourceType": "script"
}, },
"rules": {
// That is okay for the built version
"no-multiple-empty-lines": "off"
},
"globals": { "globals": {
"define": false, "define": false,
"module": true, "module": true,
"Symbol": false "Symbol": false
},
"overrides": [
{
"files": "jquery.js",
"extends": "../.eslintrc-browser.json",
"rules": {
// That is okay for the built version
"no-multiple-empty-lines": "off"
} }
} }
]
}