fix: eslint autofixable issues (#32181)
* fix: eslint operator-linebreak issue * fix: eslint quotes issue * fix: react jsx indent and props issues * fix: eslint trailing spaces issues * fix: eslint line around directives issue * fix: eslint semi rule * fix: eslint newline per chain rule * fix: eslint space infix ops rule * fix: eslint space-in-parens issue * fix: eslint space before function paren issue * fix: eslint space before blocks issue * fix: eslint arrow body style issue * fix: eslint dot-location issue * fix: eslint quotes issue * fix: eslint quote props issue * fix: eslint operator assignment issue * fix: eslint new line after import issue * fix: indent issues * fix: operator assignment issue * fix: all autofixable eslint issues * fix: all react related fixable issues * fix: autofixable eslint issues * chore: remove all template literals * fix: remaining autofixable issues * fix: failing js test
This commit is contained in:
committed by
GitHub
parent
f2daf37d4a
commit
d7053a6783
@@ -907,8 +907,8 @@
|
||||
this.el.find('.choicegroup').each(function(i, choicegroupBlock) {
|
||||
var checked;
|
||||
checked = false;
|
||||
$(choicegroupBlock).find('input[type=checkbox], input[type=radio]').
|
||||
each(function(j, checkboxOrRadio) {
|
||||
$(choicegroupBlock).find('input[type=checkbox], input[type=radio]')
|
||||
.each(function(j, checkboxOrRadio) {
|
||||
if ($(checkboxOrRadio).is(':checked')) {
|
||||
checked = true;
|
||||
}
|
||||
|
||||
@@ -315,8 +315,6 @@
|
||||
'ERROR: Invalid JSON config for poll ID "' + this.id + '".',
|
||||
'Error messsage: "' + err.message + '".'
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
} // End-of: function PollMain(el) {
|
||||
}); // End-of: define('PollMain', [], function () {
|
||||
|
||||
@@ -8,8 +8,8 @@ function format(time, formatFull) {
|
||||
seconds = Math.floor(time);
|
||||
minutes = Math.floor(seconds / 60);
|
||||
hours = Math.floor(minutes / 60);
|
||||
seconds = seconds % 60;
|
||||
minutes = minutes % 60;
|
||||
seconds %= 60;
|
||||
minutes %= 60;
|
||||
|
||||
if (formatFull) {
|
||||
return '' + _pad(hours) + ':' + _pad(minutes) + ':' + _pad(seconds % 60);
|
||||
@@ -38,4 +38,4 @@ function _pad(number) {
|
||||
}
|
||||
}
|
||||
|
||||
export {format, formatFull, convert}
|
||||
export {format, formatFull, convert};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
(function(define) {
|
||||
'use strict';
|
||||
|
||||
// VideoSocialSharingHandler module.
|
||||
define(
|
||||
'video/036_video_social_sharing.js', ['underscore'],
|
||||
@@ -37,13 +38,13 @@
|
||||
this.el.on('click', '.btn-link', this.clickHandler);
|
||||
this.baseVideoUrl = this.el.data('url');
|
||||
this.course_id = this.container.data('courseId');
|
||||
this.block_id = this.container.data('blockId')
|
||||
this.block_id = this.container.data('blockId');
|
||||
},
|
||||
|
||||
// Fire an analytics event on share button click.
|
||||
clickHandler: function(event) {
|
||||
var self = this;
|
||||
var source = $(event.currentTarget).data('source')
|
||||
var source = $(event.currentTarget).data('source');
|
||||
self.sendAnalyticsEvent(source);
|
||||
},
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
(function(requirejs, require, define) {
|
||||
// VideoQualityControl module.
|
||||
|
||||
'use strict';
|
||||
|
||||
'use strict';
|
||||
|
||||
define(
|
||||
'video/05_video_quality_control.js',
|
||||
|
||||
@@ -332,8 +332,8 @@ mind, or whether to act, and in acting, to live."
|
||||
return interpolate(msg, {value: value}, true);
|
||||
};
|
||||
|
||||
seconds = seconds % 60;
|
||||
minutes = minutes % 60;
|
||||
seconds %= 60;
|
||||
minutes %= 60;
|
||||
|
||||
if (hours) {
|
||||
return i18n(hours, 'hour') + ' '
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
(function(define) {
|
||||
// VideoCaption module.
|
||||
|
||||
'use strict';
|
||||
|
||||
'use strict';
|
||||
|
||||
define('video/09_video_caption.js', [
|
||||
'video/00_sjson.js',
|
||||
|
||||
Reference in New Issue
Block a user