aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-02-19 13:20:57 +0100
committerGitHub <noreply@github.com>2019-02-19 13:20:57 +0100
commitc10945d0e15c5048ae8b5b7e3f8241ad27671a7c (patch)
treeae5b54aeae5f61a9cf17005596e4e29aaeeb829f
parent8751e9ef86c007e55c9e4a2fe3c9212fb2cadcca (diff)
downloadjquery-c10945d0e15c5048ae8b5b7e3f8241ad27671a7c.tar.gz
jquery-c10945d0e15c5048ae8b5b7e3f8241ad27671a7c.zip
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
-rw-r--r--.eslintrc-browser.json4
-rw-r--r--src/.eslintrc.json6
-rw-r--r--test/.eslintrc.json7
3 files changed, 6 insertions, 11 deletions
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,