aboutsummaryrefslogtreecommitdiffstats
path: root/ui/effects
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2021-06-07 00:58:12 +0200
committerGitHub <noreply@github.com>2021-06-07 00:58:12 +0200
commit70dae67b73dfea9126f126f516fe8286f1e73417 (patch)
treee61eafab41ee74330fecf1da2ce125050cfac49b /ui/effects
parenta12c98574d07f002fd59d166f9fc1fd391581b91 (diff)
downloadjquery-ui-70dae67b73dfea9126f126f516fe8286f1e73417.tar.gz
jquery-ui-70dae67b73dfea9126f126f516fe8286f1e73417.zip
Build: Migrate from JSHint & JSCS to ESLint
Fixes #15393 Closes gh-1958
Diffstat (limited to 'ui/effects')
-rw-r--r--ui/effects/effect-blind.js7
-rw-r--r--ui/effects/effect-bounce.js7
-rw-r--r--ui/effects/effect-clip.js7
-rw-r--r--ui/effects/effect-drop.js7
-rw-r--r--ui/effects/effect-explode.js11
-rw-r--r--ui/effects/effect-fade.js7
-rw-r--r--ui/effects/effect-fold.js7
-rw-r--r--ui/effects/effect-highlight.js7
-rw-r--r--ui/effects/effect-puff.js7
-rw-r--r--ui/effects/effect-pulsate.js7
-rw-r--r--ui/effects/effect-scale.js7
-rw-r--r--ui/effects/effect-shake.js7
-rw-r--r--ui/effects/effect-size.js7
-rw-r--r--ui/effects/effect-slide.js7
-rw-r--r--ui/effects/effect-transfer.js7
15 files changed, 77 insertions, 32 deletions
diff --git a/ui/effects/effect-blind.js b/ui/effects/effect-blind.js
index 76781f4c7..858c6d3fd 100644
--- a/ui/effects/effect-blind.js
+++ b/ui/effects/effect-blind.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "blind", "hide", function( options, done ) {
var map = {
@@ -67,4 +70,4 @@ return $.effects.define( "blind", "hide", function( options, done ) {
} );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-bounce.js b/ui/effects/effect-bounce.js
index 1743ef503..8cb18f82c 100644
--- a/ui/effects/effect-bounce.js
+++ b/ui/effects/effect-bounce.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "bounce", function( options, done ) {
var upAnim, downAnim, refValue,
@@ -107,4 +110,4 @@ return $.effects.define( "bounce", function( options, done ) {
$.effects.unshift( element, queuelen, anims + 1 );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-clip.js b/ui/effects/effect-clip.js
index df3a1d644..ca25ef370 100644
--- a/ui/effects/effect-clip.js
+++ b/ui/effects/effect-clip.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "clip", "hide", function( options, done ) {
var start,
@@ -62,4 +65,4 @@ return $.effects.define( "clip", "hide", function( options, done ) {
} );
-} ) );
+} );
diff --git a/ui/effects/effect-drop.js b/ui/effects/effect-drop.js
index c7e3d7a6e..9d620e974 100644
--- a/ui/effects/effect-drop.js
+++ b/ui/effects/effect-drop.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "drop", "hide", function( options, done ) {
@@ -66,4 +69,4 @@ return $.effects.define( "drop", "hide", function( options, done ) {
} );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-explode.js b/ui/effects/effect-explode.js
index d5aca490f..2b8a000e6 100644
--- a/ui/effects/effect-explode.js
+++ b/ui/effects/effect-explode.js
@@ -9,13 +9,15 @@
//>>label: Explode Effect
//>>group: Effects
-// jscs:disable maximumLineLength
+/* eslint-disable max-len */
//>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness.
-// jscs:enable maximumLineLength
+/* eslint-enable max-len */
//>>docs: http://api.jqueryui.com/explode-effect/
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -29,7 +31,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "explode", "hide", function( options, done ) {
@@ -108,4 +111,4 @@ return $.effects.define( "explode", "hide", function( options, done ) {
}
} );
-} ) );
+} );
diff --git a/ui/effects/effect-fade.js b/ui/effects/effect-fade.js
index 1373ae8a7..56d6a0cae 100644
--- a/ui/effects/effect-fade.js
+++ b/ui/effects/effect-fade.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "fade", "toggle", function( options, done ) {
var show = options.mode === "show";
@@ -44,4 +47,4 @@ return $.effects.define( "fade", "toggle", function( options, done ) {
} );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-fold.js b/ui/effects/effect-fold.js
index 2214a1cf3..ad19bfb26 100644
--- a/ui/effects/effect-fold.js
+++ b/ui/effects/effect-fold.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "fold", "hide", function( options, done ) {
@@ -86,4 +89,4 @@ return $.effects.define( "fold", "hide", function( options, done ) {
$.effects.unshift( element, queuelen, 4 );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-highlight.js b/ui/effects/effect-highlight.js
index 2ab587939..8d852de3d 100644
--- a/ui/effects/effect-highlight.js
+++ b/ui/effects/effect-highlight.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "highlight", "show", function( options, done ) {
var element = $( this ),
@@ -54,4 +57,4 @@ return $.effects.define( "highlight", "show", function( options, done ) {
} );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-puff.js b/ui/effects/effect-puff.js
index bfe922f0c..70e9acd0b 100644
--- a/ui/effects/effect-puff.js
+++ b/ui/effects/effect-puff.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -28,7 +30,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "puff", "hide", function( options, done ) {
var newOptions = $.extend( true, {}, options, {
@@ -39,4 +42,4 @@ return $.effects.define( "puff", "hide", function( options, done ) {
$.effects.effect.scale.call( this, newOptions, done );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-pulsate.js b/ui/effects/effect-pulsate.js
index 9fce19194..de5f80a10 100644
--- a/ui/effects/effect-pulsate.js
+++ b/ui/effects/effect-pulsate.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "pulsate", "show", function( options, done ) {
var element = $( this ),
@@ -61,4 +64,4 @@ return $.effects.define( "pulsate", "show", function( options, done ) {
$.effects.unshift( element, queuelen, anims + 1 );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-scale.js b/ui/effects/effect-scale.js
index 9379f88c7..b9a983efd 100644
--- a/ui/effects/effect-scale.js
+++ b/ui/effects/effect-scale.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -28,7 +30,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "scale", function( options, done ) {
@@ -53,4 +56,4 @@ return $.effects.define( "scale", function( options, done ) {
$.effects.effect.size.call( this, newOptions, done );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-shake.js b/ui/effects/effect-shake.js
index 596aa12ae..cf51d66b6 100644
--- a/ui/effects/effect-shake.js
+++ b/ui/effects/effect-shake.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "shake", function( options, done ) {
@@ -71,4 +74,4 @@ return $.effects.define( "shake", function( options, done ) {
$.effects.unshift( element, queuelen, anims + 1 );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-size.js b/ui/effects/effect-size.js
index 95a1423e6..4c6763590 100644
--- a/ui/effects/effect-size.js
+++ b/ui/effects/effect-size.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "size", function( options, done ) {
@@ -190,4 +193,4 @@ return $.effects.define( "size", function( options, done ) {
} );
-} ) );
+} );
diff --git a/ui/effects/effect-slide.js b/ui/effects/effect-slide.js
index 3ba7a2edc..52244219a 100644
--- a/ui/effects/effect-slide.js
+++ b/ui/effects/effect-slide.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
return $.effects.define( "slide", "show", function( options, done ) {
var startClip, startRef,
@@ -73,4 +76,4 @@ return $.effects.define( "slide", "show", function( options, done ) {
} );
} );
-} ) );
+} );
diff --git a/ui/effects/effect-transfer.js b/ui/effects/effect-transfer.js
index 0029de7a5..3c5252781 100644
--- a/ui/effects/effect-transfer.js
+++ b/ui/effects/effect-transfer.js
@@ -14,6 +14,8 @@
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -27,7 +29,8 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
var effect;
if ( $.uiBackCompat !== false ) {
@@ -37,4 +40,4 @@ if ( $.uiBackCompat !== false ) {
}
return effect;
-} ) );
+} );