chore: apply amnesty on existing not fixable issues (#32215)

* 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

* chore: apply amnesty on all existing issues

* fix: failing xss-lint issues

* refactor: apply amnesty on remaining issues

* refactor: apply amnesty on new issues

* fix: remove file level suppressions

* refactor: apply amnesty on new issues
This commit is contained in:
Syed Ali Abbas Zaidi
2023-08-07 19:13:19 +05:00
committed by GitHub
parent e94af3c2d3
commit 8480dbc228
305 changed files with 1043 additions and 202 deletions

View File

@@ -22,6 +22,7 @@ var onCertificatesReady = null;
confirmMessage = gettext('Prevent students from generating certificates in this course?');
}
// eslint-disable-next-line no-alert
if (!confirm(confirmMessage)) {
event.preventDefault();
}
@@ -40,6 +41,7 @@ var onCertificatesReady = null;
*/
var $section = $('section#certificates');
$section.on('click', '#btn-start-generating-certificates', function(event) {
// eslint-disable-next-line no-alert
if (!confirm(gettext('Start generating certificates for all students in this course?'))) {
event.preventDefault();
return;
@@ -65,6 +67,7 @@ var onCertificatesReady = null;
* Start regenerating certificates for students.
*/
$section.on('click', '#btn-start-regenerating-certificates', function(event) {
// eslint-disable-next-line no-alert
if (!confirm(gettext('Start regenerating certificates for students in this course?'))) {
event.preventDefault();
return;
@@ -104,6 +107,7 @@ var onCertificatesReady = null;
$(onCertificatesReady);
var Certificates = (function() {
// eslint-disable-next-line no-shadow
function Certificates($section) {
$section.data('wrapper', this);
this.instructor_tasks = new window.InstructorDashboard.util.PendingInstructorTasks($section);

View File

@@ -2,6 +2,7 @@
var CohortManagement;
CohortManagement = (function() {
// eslint-disable-next-line no-shadow
function CohortManagement($section) {
this.$section = $section;
this.$section.data('wrapper', this);

View File

@@ -89,6 +89,7 @@ such that the value can be defined later than this assignment (file load order).
return safeWaiter;
}());
// eslint-disable-next-line new-parens
sectionsHaveLoaded = new SafeWaiter;
$(function() {
@@ -198,6 +199,7 @@ such that the value can be defined later than this assignment (file load order).
$element: idashContent.find('.' + CSS_IDASH_SECTION + '#open_response_assessment')
}
];
// eslint-disable-next-line no-void
if (edx.instructor_dashboard.proctoring !== void 0) {
sectionsToInitialize = sectionsToInitialize.concat([
{

View File

@@ -537,6 +537,7 @@ such that the value can be defined later than this assignment (file load order).
if (successes.length && dataFromServer.action === 'remove') {
// Translators: A list of users appears after this sentence;
renderList(gettext('These users were successfully removed as beta testers:'), (function() {
// eslint-disable-next-line no-shadow
var j, len1, results;
results = [];
for (j = 0, len1 = successes.length; j < len1; j++) {
@@ -549,6 +550,7 @@ such that the value can be defined later than this assignment (file load order).
if (errors.length && dataFromServer.action === 'add') {
// Translators: A list of users appears after this sentence;
renderList(gettext('These users were not added as beta testers:'), (function() {
// eslint-disable-next-line no-shadow
var j, len1, results;
results = [];
for (j = 0, len1 = errors.length; j < len1; j++) {
@@ -561,6 +563,7 @@ such that the value can be defined later than this assignment (file load order).
if (errors.length && dataFromServer.action === 'remove') {
// Translators: A list of users appears after this sentence;
renderList(gettext('These users were not removed as beta testers:'), (function() {
// eslint-disable-next-line no-shadow
var j, len1, results;
results = [];
for (j = 0, len1 = errors.length; j < len1; j++) {
@@ -575,6 +578,7 @@ such that the value can be defined later than this assignment (file load order).
gettext('Users must create and activate their account before they can be promoted to beta tester.'))
);
return renderList(gettext('Could not find users associated with the following identifiers:'), (function() { // eslint-disable-line max-len
// eslint-disable-next-line no-shadow
var j, len1, results;
results = [];
for (j = 0, len1 = noUsers.length; j < len1; j++) {

View File

@@ -674,6 +674,7 @@
this.$request_err_ee.empty();
this.$request_response_error_all.empty();
return function() {
// eslint-disable-next-line no-void
return cb != null ? cb.apply(this, arguments) : void 0;
};
};