File tree 6 files changed +9
-17
lines changed
6 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"root" : true ,
3
3
4
- "extends" : " ./.eslintrc-node.json" ,
5
-
6
- "overrides" : [
7
- {
8
- "files" : " rollup.config.js" ,
9
- "parserOptions" : {
10
- "sourceType" : " module"
11
- }
12
- }
13
- ]
4
+ "extends" : " ./.eslintrc-node.json"
14
5
}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = function( grunt ) {
24
24
grunt . initConfig ( {
25
25
pkg : grunt . file . readJSON ( "package.json" ) ,
26
26
dst : readOptionalJSON ( "dist/.destination.json" ) ,
27
- " compare_size" : {
27
+ compare_size : {
28
28
files : [ "dist/jquery.js" , "dist/jquery.min.js" ] ,
29
29
options : {
30
30
compress : {
@@ -232,7 +232,7 @@ module.exports = function( grunt ) {
232
232
"test/data/jquery-1.9.1.js" ,
233
233
"test/data/testinit-jsdom.js" ,
234
234
235
- // We don't support various loading methods like AMD ,
235
+ // We don't support various loading methods like esmodules ,
236
236
// choosing a version etc. for jsdom.
237
237
"dist/jquery.js" ,
238
238
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ module.exports = function( grunt ) {
19
19
20
20
const outputRollupOptions = {
21
21
format : "amd" ,
22
- dir : "amd"
22
+ dir : "amd" ,
23
+ indent : false
23
24
} ;
24
25
25
26
grunt . registerTask (
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ module.exports = function( grunt ) {
54
54
55
55
grunt . registerMultiTask (
56
56
"build" ,
57
- "Concatenate source, remove sub AMD definitions , " +
57
+ "Build jQuery ECMAScript modules , " +
58
58
"(include/exclude modules with +/- flags), embed date/version" ,
59
59
async function ( ) {
60
60
const done = this . async ( ) ;
@@ -302,7 +302,7 @@ module.exports = function( grunt ) {
302
302
) ;
303
303
304
304
grunt . file . write ( name , compiledContents ) ;
305
- grunt . log . ok ( " File '" + name + " ' created." ) ;
305
+ grunt . log . ok ( ` File '${ name } ' created.` ) ;
306
306
done ( ) ;
307
307
} catch ( err ) {
308
308
done ( err ) ;
Original file line number Diff line number Diff line change 34
34
// Code Style. This makes that indentation check is not
35
35
// performed for 1 depth of outer FunctionExpressions
36
36
"ignoredNodes" : [
37
- " Program > ExpressionStatement > CallExpression > FunctionExpression > *"
37
+ " Program > ExpressionStatement > CallExpression > :last-child > *"
38
38
]
39
39
} ]
40
40
},
Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ jQuery.extend( {
576
576
}
577
577
578
578
// We can fire global events as of now if asked to
579
- // Don't fire events if jQuery.event is undefined in an AMD -usage scenario (# 15118)
579
+ // Don't fire events if jQuery.event is undefined in an ESM -usage scenario (trac- 15118)
580
580
fireGlobals = jQuery . event && s . global ;
581
581
582
582
// Watch for a new set of requests
You can’t perform that action at this time.
0 commit comments