From: Michał Gołębiowski-Owczarek Date: Tue, 19 Feb 2019 12:20:57 +0000 (+0100) Subject: Build: Remove obsolete globals from ESLint configuration X-Git-Tag: 3.4.0~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c10945d0e15c5048ae8b5b7e3f8241ad27671a7c;p=jquery.git 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 --- diff --git a/.eslintrc-browser.json b/.eslintrc-browser.json index c704209ab..ffd5b6467 100644 --- a/.eslintrc-browser.json +++ b/.eslintrc-browser.json @@ -19,10 +19,8 @@ "globals": { "window": true, - "jQuery": true, "define": true, - "module": true, - "noGlobal": true + "module": true }, "rules": { diff --git a/src/.eslintrc.json b/src/.eslintrc.json index 3a4a3d257..2083914bd 100644 --- a/src/.eslintrc.json +++ b/src/.eslintrc.json @@ -1,5 +1,9 @@ { "root": true, - "extends": "../.eslintrc-browser.json" + "extends": "../.eslintrc-browser.json", + + "globals": { + "jQuery": true + } } diff --git a/test/.eslintrc.json b/test/.eslintrc.json index 8cc2adc96..c3924fbc6 100644 --- a/test/.eslintrc.json +++ b/test/.eslintrc.json @@ -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,