fix: all auto fixable eslint issues (#31900)
* 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 prefer template 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
This commit is contained in:
committed by
GitHub
parent
118ea3a024
commit
228180b1ef
@@ -85,7 +85,7 @@
|
||||
if (index === 0) {
|
||||
$navItemList = $sequenceList.find('li').last();
|
||||
} else {
|
||||
$navItemList = $sequenceList.find('li:eq(' + index + ')').prev();
|
||||
$navItemList = $sequenceList.find(`li:eq(${index})`).prev();
|
||||
}
|
||||
$sequenceList.find('.tab').removeClass('visited').removeClass('focused');
|
||||
$navItemList.find('.tab').addClass('focused').focus();
|
||||
@@ -97,7 +97,7 @@
|
||||
if (index === total) {
|
||||
$navItemList = $sequenceList.find('li').first();
|
||||
} else {
|
||||
$navItemList = $sequenceList.find('li:eq(' + index + ')').next();
|
||||
$navItemList = $sequenceList.find(`li:eq(${index})`).next();
|
||||
}
|
||||
$sequenceList.find('.tab').removeClass('visited').removeClass('focused');
|
||||
$navItemList.find('.tab').addClass('focused').focus();
|
||||
@@ -145,7 +145,7 @@
|
||||
|
||||
if (positionLink && positionLink.data('page-title')) {
|
||||
currentUnitTitle = positionLink.data('page-title');
|
||||
newPageTitle = currentUnitTitle + ' | ' + this.base_page_title;
|
||||
newPageTitle = `${currentUnitTitle} | ${this.base_page_title}`;
|
||||
|
||||
if (newPageTitle !== document.title) {
|
||||
document.title = newPageTitle;
|
||||
@@ -262,7 +262,7 @@
|
||||
latestContent = latestData[0];
|
||||
latestResponse = latestData[1];
|
||||
self.content_container
|
||||
.find("[data-problem-id='" + problemId + "']")
|
||||
.find(`[data-problem-id='${problemId}']`)
|
||||
.data('content', latestContent)
|
||||
.data('problem-score', latestResponse.current_score)
|
||||
.data('problem-total-possible', latestResponse.total_possible)
|
||||
@@ -352,7 +352,7 @@
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
analyticsEventName = 'edx.ui.lms.sequence.' + direction + '_selected';
|
||||
analyticsEventName = `edx.ui.lms.sequence.${direction}_selected`;
|
||||
isBottomNav = $(event.target).closest('nav[class="sequence-bottom"]').length > 0;
|
||||
|
||||
if (isBottomNav) {
|
||||
@@ -398,7 +398,7 @@
|
||||
};
|
||||
|
||||
Sequence.prototype.link_for = function(position) {
|
||||
return this.$('#sequence-list .nav-item[data-element=' + position + ']');
|
||||
return this.$(`#sequence-list .nav-item[data-element=${position}]`);
|
||||
};
|
||||
|
||||
Sequence.prototype.mark_visited = function(position) {
|
||||
|
||||
Reference in New Issue
Block a user