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

@@ -328,6 +328,7 @@
that.new_queued_items = $(response.html).find('.xqueue');
if (that.new_queued_items.length !== that.num_queued_items) {
edx.HtmlUtils.setHtml(that.el, edx.HtmlUtils.HTML(response.html)).promise().done(function() {
// eslint-disable-next-line no-void
return typeof focusCallback === 'function' ? focusCallback() : void 0;
});
JavascriptLoader.executeModuleScripts(that.el, function() {
@@ -386,6 +387,7 @@
that.bind();
that.queueing(focusCallback);
that.renderProgressState();
// eslint-disable-next-line no-void
return typeof focusCallback === 'function' ? focusCallback() : void 0;
});
} else {
@@ -415,6 +417,7 @@
if (setupMethod != null) {
results.push(that.inputtypeDisplays[id] = setupMethod(inputtype));
} else {
// eslint-disable-next-line no-void
results.push(void 0);
}
}
@@ -760,6 +763,7 @@
if (showMethod != null) {
results.push(showMethod(inputtype, display, answers, response.correct_status_html));
} else {
// eslint-disable-next-line no-void
results.push(void 0);
}
}
@@ -962,6 +966,7 @@
if (bindMethod != null) {
results.push(bindMethod(inputtype));
} else {
// eslint-disable-next-line no-void
results.push(void 0);
}
}
@@ -1310,6 +1315,7 @@
that = this;
hintContainer = this.$('.problem-hint');
hintIndex = hintContainer.attr('hint_index');
// eslint-disable-next-line no-void
if (hintIndex === void 0) {
nextIndex = 0;
} else {

View File

@@ -13,6 +13,7 @@
* ~ Chinese Proverb
*/
// eslint-disable-next-line no-shadow-restricted-names
window.ImageInput = (function($, undefined) {
var ImageInput = ImageInputConstructor;