mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
Build: Remove obsolete globals from ESLint configuration
We had quite a few obsolete globals declared in various ESLint config files. We also no longer allow to rely on the `noGlobal` & `jQuery` globals in the built file which is not needed. Closes gh-4301
This commit is contained in:
parent
8751e9ef86
commit
c10945d0e1
@ -19,10 +19,8 @@
|
|||||||
|
|
||||||
"globals": {
|
"globals": {
|
||||||
"window": true,
|
"window": true,
|
||||||
"jQuery": true,
|
|
||||||
"define": true,
|
"define": true,
|
||||||
"module": true,
|
"module": true
|
||||||
"noGlobal": true
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"rules": {
|
"rules": {
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
|
|
||||||
"extends": "../.eslintrc-browser.json"
|
"extends": "../.eslintrc-browser.json",
|
||||||
|
|
||||||
|
"globals": {
|
||||||
|
"jQuery": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,22 +12,15 @@
|
|||||||
|
|
||||||
"globals": {
|
"globals": {
|
||||||
"require": false,
|
"require": false,
|
||||||
"define": false,
|
|
||||||
"DOMParser": false,
|
|
||||||
"JSON": false,
|
|
||||||
"Promise": false,
|
"Promise": false,
|
||||||
"Symbol": false,
|
"Symbol": false,
|
||||||
"QUnit": false,
|
"QUnit": false,
|
||||||
"ajaxTest": false,
|
"ajaxTest": false,
|
||||||
"testIframe": false,
|
"testIframe": false,
|
||||||
"testIframeWithCallback": false,
|
|
||||||
"iframeCallback": true,
|
|
||||||
"createDashboardXML": false,
|
"createDashboardXML": false,
|
||||||
"createXMLFragment": false,
|
"createXMLFragment": false,
|
||||||
"moduleTeardown": false,
|
"moduleTeardown": false,
|
||||||
"testFoo": false,
|
|
||||||
"url": false,
|
"url": false,
|
||||||
"t": false,
|
|
||||||
"q": false,
|
"q": false,
|
||||||
"jQuery": true,
|
"jQuery": true,
|
||||||
"sinon": true,
|
"sinon": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user