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:
Syed Ali Abbas Zaidi
2023-05-18 11:03:59 +05:00
committed by GitHub
parent f2daf37d4a
commit d7053a6783
140 changed files with 849 additions and 833 deletions

View File

@@ -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;
}

View File

@@ -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 () {

View File

@@ -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};

View File

@@ -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);
},

View File

@@ -1,7 +1,7 @@
(function(requirejs, require, define) {
// VideoQualityControl module.
'use strict';
'use strict';
define(
'video/05_video_quality_control.js',

View File

@@ -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') + ' '

View File

@@ -1,7 +1,7 @@
(function(define) {
// VideoCaption module.
'use strict';
'use strict';
define('video/09_video_caption.js', [
'video/00_sjson.js',