Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit40c3abd

Browse files
authored
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 wasonly imported from ajax.js, making it mistakenly skipped in the`custom:slim,-deprecated` build.
1 parent0b676ae commit40c3abd

File tree

7 files changed

+5
-9
lines changed

7 files changed

+5
-9
lines changed

‎src/.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"rules": {
1414
"import/extensions": ["error","always" ],
1515
"import/no-cycle":"error",
16+
"import/no-unused-modules": ["error", {
17+
"unusedExports":true,
18+
"ignoreExports": ["src/*.js" ]
19+
} ],
1620
"indent": ["error","tab", {
1721
"outerIIFEBody":0
1822
} ]

‎src/core/init.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,3 @@ init.prototype = jQuery.fn;
118118

119119
// Initialize central reference
120120
rootjQuery=jQuery(document);
121-
122-
exportdefaultinit;

‎src/core/parseXML.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,3 @@ jQuery.parseXML = function( data ) {
2020
}
2121
returnxml;
2222
};
23-
24-
exportdefaultjQuery.parseXML;

‎src/core/var/rhtml.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎src/event/trigger.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,3 @@ jQuery.fn.extend( {
190190
}
191191
}
192192
});
193-
194-
exportdefaultjQuery;

‎src/jquery.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import "./queue.js";
1111
import"./queue/delay.js";
1212
import"./attributes.js";
1313
import"./event.js";
14+
import"./event/trigger.js";
1415
import"./manipulation.js";
1516
import"./manipulation/_evalUrl.js";
1617
import"./wrap.js";

‎src/manipulation/_evalUrl.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@ jQuery._evalUrl = function( url, options, doc ) {
2222
}
2323
});
2424
};
25-
26-
exportdefaultjQuery._evalUrl;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp