From 40c3abd0ab049449acab5f2e12c34b9cc3199482 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Tue, 2 Jun 2020 13:45:08 +0200 Subject: Build:Event: Make sure all source modules' exports are used (#4648) To achieve that, use `eslint-plugin-import`'s `no-unused-modules` rule. Also, explicitly import `event/trigger.js` from `jquery.js`; so far it was only imported from ajax.js, making it mistakenly skipped in the `custom:slim,-deprecated` build. --- src/core/init.js | 2 -- src/core/parseXML.js | 2 -- src/core/var/rhtml.js | 1 - 3 files changed, 5 deletions(-) delete mode 100644 src/core/var/rhtml.js (limited to 'src/core') diff --git a/src/core/init.js b/src/core/init.js index c2f35e1f4..a97fc1060 100644 --- a/src/core/init.js +++ b/src/core/init.js @@ -118,5 +118,3 @@ init.prototype = jQuery.fn; // Initialize central reference rootjQuery = jQuery( document ); - -export default init; diff --git a/src/core/parseXML.js b/src/core/parseXML.js index d547eab53..715f59f1f 100644 --- a/src/core/parseXML.js +++ b/src/core/parseXML.js @@ -20,5 +20,3 @@ jQuery.parseXML = function( data ) { } return xml; }; - -export default jQuery.parseXML; diff --git a/src/core/var/rhtml.js b/src/core/var/rhtml.js deleted file mode 100644 index 3dace14c5..000000000 --- a/src/core/var/rhtml.js +++ /dev/null @@ -1 +0,0 @@ -export default ( /HTML$/i ); -- cgit v1.2.3