]> source.dussan.org Git - jquery.git/commitdiff
Build: Remove obsolete globals from ESLint configuration
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 19 Feb 2019 12:20:57 +0000 (13:20 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Feb 2019 12:20:57 +0000 (13:20 +0100)
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

.eslintrc-browser.json
src/.eslintrc.json
test/.eslintrc.json

index c704209ab37fec1c9ee519f348f513d555f4d78a..ffd5b64674e25091d19e660e21c8e0b7d6ccb76d 100644 (file)
 
        "globals": {
                "window": true,
-               "jQuery": true,
                "define": true,
-               "module": true,
-               "noGlobal": true
+               "module": true
        },
 
        "rules": {
index 3a4a3d2578a747f3d77f86b5c038aaf4abf3efb3..2083914bd8e08ea6083ec219344f02b768b797b4 100644 (file)
@@ -1,5 +1,9 @@
 {
        "root": true,
 
-       "extends": "../.eslintrc-browser.json"
+       "extends": "../.eslintrc-browser.json",
+
+       "globals": {
+               "jQuery": true
+       }
 }
index 8cc2adc9606becfb6769aa8154bde9f4e9003766..c3924fbc637633869e5e7ce590644b30f1806d2d 100644 (file)
 
        "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,