mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
e1fab10911
commit
89a18de64c
@ -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
|
||||
|
21
dist/.eslintrc.json
vendored
21
dist/.eslintrc.json
vendored
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user