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:
Michał Gołębiowski-Owczarek 2019-02-19 13:20:57 +01:00 committed by GitHub
parent 8751e9ef86
commit c10945d0e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 11 deletions

View File

@ -19,10 +19,8 @@
"globals": {
"window": true,
"jQuery": true,
"define": true,
"module": true,
"noGlobal": true
"module": true
},
"rules": {

View File

@ -1,5 +1,9 @@
{
"root": true,
"extends": "../.eslintrc-browser.json"
"extends": "../.eslintrc-browser.json",
"globals": {
"jQuery": true
}
}

View File

@ -12,22 +12,15 @@
"globals": {
"require": false,
"define": false,
"DOMParser": false,
"JSON": false,
"Promise": false,
"Symbol": false,
"QUnit": false,
"ajaxTest": false,
"testIframe": false,
"testIframeWithCallback": false,
"iframeCallback": true,
"createDashboardXML": false,
"createXMLFragment": false,
"moduleTeardown": false,
"testFoo": false,
"url": false,
"t": false,
"q": false,
"jQuery": true,
"sinon": true,