]> source.dussan.org Git - jquery.git/commitdiff
Build: Fix unresolved jQuery reference in finalPropName
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 17 Apr 2019 17:56:25 +0000 (19:56 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 17 Apr 2019 17:58:20 +0000 (19:58 +0200)
Also, prevent further similar breakages by changing our ESLint configuration
to disallow relying on a global jQuery object in AMD modules.

(cherry-picked from 874030583c9b94603de467124420e6c7a1c3c8ac)

Fixes gh-4358
Closes gh-4361

src/.eslintrc.json
src/css/finalPropName.js

index 2083914bd8e08ea6083ec219344f02b768b797b4..3d0ca185a21bae7e8538785643670bc3e101b061 100644 (file)
@@ -3,7 +3,12 @@
 
        "extends": "../.eslintrc-browser.json",
 
-       "globals": {
-               "jQuery": true
-       }
+       "overrides": [
+               {
+                       "files": "wrapper.js",
+                       "globals": {
+                               "jQuery": false
+                       }
+               }
+       ]
 }
index e5c77b0b2e9d74a2e6e59de832dd7d9443747c85..352d18a2756cf3f2566603820cbba00a8a4c42cb 100644 (file)
@@ -1,4 +1,7 @@
-define( [ "../var/document" ], function( document ) {
+define( [
+       "../var/document",
+       "../core"
+], function( document, jQuery ) {
 
 "use strict";