From b5409f6f078271d2d482e6ac43e7b579fc6180de Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 14 Jul 2023 15:35:52 +0530 Subject: [PATCH] chore: remove `eslint-disable*` --- esbuild/build-cleanup.js | 1 - esbuild/esbuild.js | 1 - esbuild/utils.js | 6 +++--- .../doctype/report/boilerplate/controller.js | 1 - .../database_storage_usage_by_tables.js | 1 - .../transaction_log_report.js | 1 - .../audit_system_hooks/audit_system_hooks.js | 1 - .../page/user_profile/user_profile_controller.js | 1 - frappe/desk/report/todo/todo.js | 1 - .../js/frappe/color_picker/color_picker.js | 3 --- .../js/frappe/form/controls/base_control.js | 16 ++++++---------- frappe/public/js/frappe/form/controls/code.js | 1 - frappe/public/js/frappe/form/controls/control.js | 1 - .../form/controls/quill-mention/blots/mention.js | 1 - .../controls/quill-mention/constants/keys.js | 1 - .../form/controls/quill-mention/quill.mention.js | 1 - frappe/public/js/frappe/form/form.js | 2 +- frappe/public/js/frappe/form/grid_row.js | 2 +- frappe/public/js/frappe/form/layout.js | 1 - .../public/js/frappe/form/multi_select_dialog.js | 1 - frappe/public/js/frappe/form/script_helpers.js | 1 - frappe/public/js/frappe/list/base_list.js | 1 - frappe/public/js/frappe/model/meta.js | 1 - frappe/public/js/frappe/request.js | 9 ++++----- frappe/public/js/frappe/scanner/index.js | 5 ++--- frappe/public/js/frappe/ui/colors.js | 2 -- .../public/js/frappe/ui/filters/filter_list.js | 2 -- frappe/public/js/frappe/ui/slides.js | 1 - frappe/public/js/frappe/ui/toolbar/search.js | 3 --- .../public/js/frappe/ui/toolbar/search_utils.js | 1 - frappe/public/js/frappe/ui/tree.js | 13 +++---------- frappe/public/js/frappe/utils/utils.js | 8 ++++---- frappe/public/js/frappe/views/communication.js | 10 +++++----- .../frappe/views/kanban/kanban_board.bundle.js | 2 +- frappe/public/js/frappe/widgets/chart_widget.js | 1 - .../js/frappe/widgets/number_card_widget.js | 2 -- frappe/public/js/frappe/widgets/widget_group.js | 1 - frappe/website/js/website.js | 2 -- .../website_analytics/website_analytics.js | 1 - generate_bootstrap_theme.js | 6 +++--- realtime/handlers/frappe_handlers.js | 2 +- 41 files changed, 34 insertions(+), 84 deletions(-) diff --git a/esbuild/build-cleanup.js b/esbuild/build-cleanup.js index 023fce08c5..77b3c0c1c8 100644 --- a/esbuild/build-cleanup.js +++ b/esbuild/build-cleanup.js @@ -1,4 +1,3 @@ -/* eslint-disable no-console */ const path = require("path"); const fs = require("fs"); const glob = require("fast-glob"); diff --git a/esbuild/esbuild.js b/esbuild/esbuild.js index 1476db3c20..8937a03216 100644 --- a/esbuild/esbuild.js +++ b/esbuild/esbuild.js @@ -1,4 +1,3 @@ -/* eslint-disable no-console */ const path = require("path"); const fs = require("fs"); const glob = require("fast-glob"); diff --git a/esbuild/utils.js b/esbuild/utils.js index 3edccfd024..3326c2d39b 100644 --- a/esbuild/utils.js +++ b/esbuild/utils.js @@ -94,16 +94,16 @@ function get_cli_arg(name) { function log_error(message, badge = "ERROR") { badge = chalk.white.bgRed(` ${badge} `); - console.error(`${badge} ${message}`); // eslint-disable-line no-console + console.error(`${badge} ${message}`); } function log_warn(message, badge = "WARN") { badge = chalk.black.bgYellowBright(` ${badge} `); - console.warn(`${badge} ${message}`); // eslint-disable-line no-console + console.warn(`${badge} ${message}`); } function log(...args) { - console.log(...args); // eslint-disable-line no-console + console.log(...args); } function get_redis_subscriber(kind) { diff --git a/frappe/core/doctype/report/boilerplate/controller.js b/frappe/core/doctype/report/boilerplate/controller.js index 9cf71a8c09..b7a53df088 100644 --- a/frappe/core/doctype/report/boilerplate/controller.js +++ b/frappe/core/doctype/report/boilerplate/controller.js @@ -1,6 +1,5 @@ // Copyright (c) {year}, {app_publisher} and contributors // For license information, please see license.txt -/* eslint-disable */ frappe.query_reports["{name}"] = {{ "filters": [ diff --git a/frappe/core/report/database_storage_usage_by_tables/database_storage_usage_by_tables.js b/frappe/core/report/database_storage_usage_by_tables/database_storage_usage_by_tables.js index b2cf268b36..8a4dbefc45 100644 --- a/frappe/core/report/database_storage_usage_by_tables/database_storage_usage_by_tables.js +++ b/frappe/core/report/database_storage_usage_by_tables/database_storage_usage_by_tables.js @@ -1,6 +1,5 @@ // Copyright (c) 2022, Frappe Technologies and contributors // For license information, please see license.txt -/* eslint-disable */ frappe.query_reports["Database Storage Usage By Tables"] = { filters: [], diff --git a/frappe/core/report/transaction_log_report/transaction_log_report.js b/frappe/core/report/transaction_log_report/transaction_log_report.js index 3c7261306d..f8f132a6d1 100644 --- a/frappe/core/report/transaction_log_report/transaction_log_report.js +++ b/frappe/core/report/transaction_log_report/transaction_log_report.js @@ -1,6 +1,5 @@ // Copyright (c) 2019, Frappe Technologies and contributors // For license information, please see license.txt -/* eslint-disable */ frappe.query_reports["Transaction Log Report"] = { onload: function (query_report) { diff --git a/frappe/custom/report/audit_system_hooks/audit_system_hooks.js b/frappe/custom/report/audit_system_hooks/audit_system_hooks.js index a78464f3da..b1db3894f1 100644 --- a/frappe/custom/report/audit_system_hooks/audit_system_hooks.js +++ b/frappe/custom/report/audit_system_hooks/audit_system_hooks.js @@ -1,6 +1,5 @@ // Copyright (c) 2023, Frappe Technologies and contributors // For license information, please see license.txt -/* eslint-disable */ frappe.query_reports["Audit System Hooks"] = { filters: [], diff --git a/frappe/desk/page/user_profile/user_profile_controller.js b/frappe/desk/page/user_profile/user_profile_controller.js index 5103bd8a19..fd38f09ddd 100644 --- a/frappe/desk/page/user_profile/user_profile_controller.js +++ b/frappe/desk/page/user_profile/user_profile_controller.js @@ -145,7 +145,6 @@ class UserProfile { }); } - // eslint-disable-next-line no-unused-vars render_percentage_chart(field, title) { frappe .xcall( diff --git a/frappe/desk/report/todo/todo.js b/frappe/desk/report/todo/todo.js index 52fee62afd..f67a366418 100644 --- a/frappe/desk/report/todo/todo.js +++ b/frappe/desk/report/todo/todo.js @@ -1,6 +1,5 @@ // Copyright (c) 2016, Frappe Technologies and contributors // For license information, please see license.txt -/* eslint-disable */ frappe.query_reports["ToDo"] = { filters: [], diff --git a/frappe/public/js/frappe/color_picker/color_picker.js b/frappe/public/js/frappe/color_picker/color_picker.js index 5f6c940425..73a260e0f7 100644 --- a/frappe/public/js/frappe/color_picker/color_picker.js +++ b/frappe/public/js/frappe/color_picker/color_picker.js @@ -122,7 +122,6 @@ class Picker { } setup_hue_event() { - // eslint-disable-next-line no-unused-vars let on_drag = (x, y) => { this.hue_selector_position.x = x; this.hue = Math.round((x * 360) / this.hue_map.offsetWidth); @@ -152,9 +151,7 @@ class Picker { } get_pointer_coords() { - // eslint-disable-next-line no-unused-vars let h, s, v; - // eslint-disable-next-line no-unused-vars [h, s, v] = utils.get_hsv(this.get_color()); let width = this.color_map.offsetWidth; let height = this.color_map.offsetHeight; diff --git a/frappe/public/js/frappe/form/controls/base_control.js b/frappe/public/js/frappe/form/controls/base_control.js index 90b314377d..88669744fa 100644 --- a/frappe/public/js/frappe/form/controls/base_control.js +++ b/frappe/public/js/frappe/form/controls/base_control.js @@ -62,25 +62,22 @@ frappe.ui.form.Control = class BaseControl { // like in case of a dialog box if (cint(this.df.hidden)) { - // eslint-disable-next-line - if (explain) console.log("By Hidden: None"); // eslint-disable-line no-console + if (explain) console.log("By Hidden: None"); return "None"; } else if (cint(this.df.hidden_due_to_dependency)) { - // eslint-disable-next-line - if (explain) console.log("By Hidden Dependency: None"); // eslint-disable-line no-console + if (explain) console.log("By Hidden Dependency: None"); return "None"; } else if ( cint(this.df.read_only || this.df.is_virtual || this.df.fieldtype === "Read Only") ) { - // eslint-disable-next-line - if (explain) console.log("By Read Only: Read"); // eslint-disable-line no-console + if (explain) console.log("By Read Only: Read"); status = "Read"; } else if ( (this.grid && this.grid.display_status == "Read") || (this.layout && this.layout.grid && this.layout.grid.display_status == "Read") ) { // parent grid is read - if (explain) console.log("By Parent Grid Read-only: Read"); // eslint-disable-line no-console + if (explain) console.log("By Parent Grid Read-only: Read"); status = "Read"; } @@ -112,7 +109,7 @@ frappe.ui.form.Control = class BaseControl { var grid = this.grid || this.layout.grid; if (grid.display_status == "Read") { status = "Read"; - if (explain) console.log("By Parent Grid Read-only: Read"); // eslint-disable-line no-console + if (explain) console.log("By Parent Grid Read-only: Read"); } } @@ -132,8 +129,7 @@ frappe.ui.form.Control = class BaseControl { is_null(value) && !in_list(["HTML", "Image", "Button", "Geolocation"], this.df.fieldtype) ) { - // eslint-disable-next-line - if (explain) console.log("By Hide Read-only, null fields: None"); // eslint-disable-line no-console + if (explain) console.log("By Hide Read-only, null fields: None"); status = "None"; } diff --git a/frappe/public/js/frappe/form/controls/code.js b/frappe/public/js/frappe/form/controls/code.js index b331d8d770..42832ee6a1 100644 --- a/frappe/public/js/frappe/form/controls/code.js +++ b/frappe/public/js/frappe/form/controls/code.js @@ -165,7 +165,6 @@ frappe.ui.form.ControlCode = class ControlCode extends frappe.ui.form.ControlTex const valid_languages = Object.keys(language_map); if (language && !valid_languages.includes(language)) { - // eslint-disable-next-line console.warn( `Invalid language option provided for field "${ this.df.label diff --git a/frappe/public/js/frappe/form/controls/control.js b/frappe/public/js/frappe/form/controls/control.js index 5531794b2b..e5c69b6431 100644 --- a/frappe/public/js/frappe/form/controls/control.js +++ b/frappe/public/js/frappe/form/controls/control.js @@ -47,7 +47,6 @@ frappe.ui.form.make_control = function (opts) { if (frappe.ui.form[control_class_name]) { return new frappe.ui.form[control_class_name](opts); } else { - // eslint-disable-next-line console.log("Invalid Control Name: " + opts.df.fieldtype); } }; diff --git a/frappe/public/js/frappe/form/controls/quill-mention/blots/mention.js b/frappe/public/js/frappe/form/controls/quill-mention/blots/mention.js index 7cf5f21b7e..e0dc8d33d2 100644 --- a/frappe/public/js/frappe/form/controls/quill-mention/blots/mention.js +++ b/frappe/public/js/frappe/form/controls/quill-mention/blots/mention.js @@ -1,4 +1,3 @@ -/* eslint-disable */ import Quill from "quill"; const Embed = Quill.import("blots/embed"); diff --git a/frappe/public/js/frappe/form/controls/quill-mention/constants/keys.js b/frappe/public/js/frappe/form/controls/quill-mention/constants/keys.js index fa1f3874b4..13dc3a92fa 100644 --- a/frappe/public/js/frappe/form/controls/quill-mention/constants/keys.js +++ b/frappe/public/js/frappe/form/controls/quill-mention/constants/keys.js @@ -1,4 +1,3 @@ -/* eslint-disable */ const Keys = { TAB: "Tab", ENTER: "Enter", diff --git a/frappe/public/js/frappe/form/controls/quill-mention/quill.mention.js b/frappe/public/js/frappe/form/controls/quill-mention/quill.mention.js index 64fd60914c..792950a4b7 100644 --- a/frappe/public/js/frappe/form/controls/quill-mention/quill.mention.js +++ b/frappe/public/js/frappe/form/controls/quill-mention/quill.mention.js @@ -1,4 +1,3 @@ -/* eslint-disable */ import Quill from "quill"; import Keys from "./constants/keys"; import "./blots/mention"; diff --git a/frappe/public/js/frappe/form/form.js b/frappe/public/js/frappe/form/form.js index e8fa017cf0..5afdffd07f 100644 --- a/frappe/public/js/frappe/form/form.js +++ b/frappe/public/js/frappe/form/form.js @@ -747,7 +747,7 @@ frappe.ui.form.Form = class FrappeForm { me.show_success_action(); }) .catch((e) => { - console.error(e); // eslint-disable-line + console.error(e); }); } diff --git a/frappe/public/js/frappe/form/grid_row.js b/frappe/public/js/frappe/form/grid_row.js index 356c5f4d1d..6fb84709ee 100644 --- a/frappe/public/js/frappe/form/grid_row.js +++ b/frappe/public/js/frappe/form/grid_row.js @@ -123,7 +123,7 @@ export default class GridRow { ]) .catch((e) => { // aborted - console.trace(e); // eslint-disable-line + console.trace(e); }); } else { let data = null; diff --git a/frappe/public/js/frappe/form/layout.js b/frappe/public/js/frappe/form/layout.js index cf976fba00..834e5f6556 100644 --- a/frappe/public/js/frappe/form/layout.js +++ b/frappe/public/js/frappe/form/layout.js @@ -240,7 +240,6 @@ frappe.ui.form.Layout = class Layout { } make_page(df) { - // eslint-disable-line no-unused-vars let me = this; let head = $(`
diff --git a/frappe/public/js/frappe/form/multi_select_dialog.js b/frappe/public/js/frappe/form/multi_select_dialog.js index 0c1c150c95..243f42f0ba 100644 --- a/frappe/public/js/frappe/form/multi_select_dialog.js +++ b/frappe/public/js/frappe/form/multi_select_dialog.js @@ -602,7 +602,6 @@ frappe.ui.form.MultiSelectDialog = class MultiSelectDialog { async get_filtered_parents_for_child_search() { const parent_search_args = this.get_args_for_search(); parent_search_args.filter_fields = ["name"]; - // eslint-disable-next-line no-unused-vars const [response, _] = await this.perform_search(parent_search_args); let parent_names = []; diff --git a/frappe/public/js/frappe/form/script_helpers.js b/frappe/public/js/frappe/form/script_helpers.js index f5772ed185..4f29a0a487 100644 --- a/frappe/public/js/frappe/form/script_helpers.js +++ b/frappe/public/js/frappe/form/script_helpers.js @@ -1,6 +1,5 @@ // Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt -/* eslint-disable no-console */ window.refresh_many = function (flist, dn, table_field) { for (var i in flist) { diff --git a/frappe/public/js/frappe/list/base_list.js b/frappe/public/js/frappe/list/base_list.js index da47417942..9d456ddf6a 100644 --- a/frappe/public/js/frappe/list/base_list.js +++ b/frappe/public/js/frappe/list/base_list.js @@ -668,7 +668,6 @@ class FilterArea { const fields_dict = this.list_view.page.fields_dict; let out = filters.reduce((out, filter) => { - // eslint-disable-next-line const [dt, fieldname, condition, value] = filter; out.promise = out.promise || Promise.resolve(); out.non_standard_filters = out.non_standard_filters || []; diff --git a/frappe/public/js/frappe/model/meta.js b/frappe/public/js/frappe/model/meta.js index e8d15875a1..d596d6300b 100644 --- a/frappe/public/js/frappe/model/meta.js +++ b/frappe/public/js/frappe/model/meta.js @@ -173,7 +173,6 @@ $.extend(frappe.meta, { }); if (!out) { - // eslint-disable-next-line console.log( __("Warning: Unable to find {0} in any table related to {1}", [ key, diff --git a/frappe/public/js/frappe/request.js b/frappe/public/js/frappe/request.js index 9693b8f41f..6278d991c1 100644 --- a/frappe/public/js/frappe/request.js +++ b/frappe/public/js/frappe/request.js @@ -294,8 +294,8 @@ frappe.request.call = function (opts) { status_code_handler(data, xhr); } } catch (e) { - console.log("Unable to handle success response", data); // eslint-disable-line - console.error(e); // eslint-disable-line + console.log("Unable to handle success response", data); + console.error(e); } }) .always(function (data, textStatus, xhr) { @@ -348,8 +348,8 @@ frappe.request.call = function (opts) { // if not handled by error handler! opts.error_callback && opts.error_callback(xhr); } catch (e) { - console.log("Unable to handle failed response"); // eslint-disable-line - console.error(e); // eslint-disable-line + console.log("Unable to handle failed response"); + console.error(e); } }); }; @@ -366,7 +366,6 @@ frappe.request.is_fresh = function (args, threshold) { new Date() - past_request.timestamp < threshold && frappe.utils.deep_equal(args, past_request.args) ) { - // eslint-disable-next-line no-console console.log("throttled"); return true; } diff --git a/frappe/public/js/frappe/scanner/index.js b/frappe/public/js/frappe/scanner/index.js index a7b38cbde3..6e641677fd 100644 --- a/frappe/public/js/frappe/scanner/index.js +++ b/frappe/public/js/frappe/scanner/index.js @@ -37,7 +37,7 @@ frappe.ui.Scanner = class Scanner { try { this.options.on_scan(decodedResult); } catch (error) { - console.error(error); // eslint-disable-line + console.error(error); } } if (!this.options.multiple) { @@ -46,14 +46,13 @@ frappe.ui.Scanner = class Scanner { } }, (errorMessage) => { - // eslint-disable-line // parse error, ignore it. } ) .catch((err) => { this.is_alive = false; this.hide_dialog(); - console.error(err); // eslint-disable-line + console.error(err); }); this.is_alive = true; } diff --git a/frappe/public/js/frappe/ui/colors.js b/frappe/public/js/frappe/ui/colors.js index 2694b013dc..e26f56faf4 100644 --- a/frappe/public/js/frappe/ui/colors.js +++ b/frappe/public/js/frappe/ui/colors.js @@ -14,7 +14,6 @@ frappe.ui.color = { if (color_names.includes(color_name)) { return frappe.ui.color_map[color_name]; } else { - // eslint-disable-next-line console.warn(`'color_name' can be one of ${color_names} and not ${color_name}`); } }, @@ -52,7 +51,6 @@ frappe.ui.color = { const color = this.get_color(color_name); return color ? color[shades[shade]] : color_name; } else { - // eslint-disable-next-line console.warn(`'shade' can be one of ${Object.keys(shades)} and not ${shade}`); } }, diff --git a/frappe/public/js/frappe/ui/filters/filter_list.js b/frappe/public/js/frappe/ui/filters/filter_list.js index 4691e05792..ad8638f1c2 100644 --- a/frappe/public/js/frappe/ui/filters/filter_list.js +++ b/frappe/public/js/frappe/ui/filters/filter_list.js @@ -303,7 +303,6 @@ frappe.ui.FilterGroup = class { } get_filter_area_template() { - /* eslint-disable indent */ return $(`
@@ -330,7 +329,6 @@ frappe.ui.FilterGroup = class {
`); - /* eslint-disable indent */ } get_filters_as_object() { diff --git a/frappe/public/js/frappe/ui/slides.js b/frappe/public/js/frappe/ui/slides.js index dbdcafdbc7..1705dcdba5 100644 --- a/frappe/public/js/frappe/ui/slides.js +++ b/frappe/public/js/frappe/ui/slides.js @@ -432,7 +432,6 @@ frappe.ui.Slides = class Slides { this.slide_dict[id] = null; } - // eslint-disable-next-line no-unused-vars on_update(completed, total) {} show_hide_prev_next(id) { diff --git a/frappe/public/js/frappe/ui/toolbar/search.js b/frappe/public/js/frappe/ui/toolbar/search.js index 7f0f106d5d..cfbfa72f7e 100644 --- a/frappe/public/js/frappe/ui/toolbar/search.js +++ b/frappe/public/js/frappe/ui/toolbar/search.js @@ -59,7 +59,6 @@ frappe.search.SearchDialog = class { callback(results, keywords); }, (err) => { - // eslint-disable-next-line no-console console.error(err); } ); @@ -78,7 +77,6 @@ frappe.search.SearchDialog = class { callback(results, keywords); }, (err) => { - // eslint-disable-next-line no-console console.error(err); } ); @@ -177,7 +175,6 @@ frappe.search.SearchDialog = class { doctype_results.length && this.add_more_results(doctype_results); }, (err) => { - // eslint-disable-next-line no-console console.error(err); } ); diff --git a/frappe/public/js/frappe/ui/toolbar/search_utils.js b/frappe/public/js/frappe/ui/toolbar/search_utils.js index 0f514eb965..aaed003d58 100644 --- a/frappe/public/js/frappe/ui/toolbar/search_utils.js +++ b/frappe/public/js/frappe/ui/toolbar/search_utils.js @@ -84,7 +84,6 @@ frappe.search.utils = { out.label = match[0].bold(); out.value = match[0]; } else { - // eslint-disable-next-line console.log("Illegal match", match); } out.index = 80; diff --git a/frappe/public/js/frappe/ui/tree.js b/frappe/public/js/frappe/ui/tree.js index c0b7c32e77..30bce22ff1 100644 --- a/frappe/public/js/frappe/ui/tree.js +++ b/frappe/public/js/frappe/ui/tree.js @@ -11,13 +11,13 @@ frappe.ui.Tree = class { icon_set, toolbar, expandable, - with_skeleton = 1, // eslint-disable-line + with_skeleton = 1, args, method, get_label, on_render, - on_click, // eslint-disable-line + on_click, }) { $.extend(this, arguments[0]); if (root_value == null) { @@ -79,14 +79,7 @@ frappe.ui.Tree = class { setup_treenode_class() { let tree = this; this.TreeNode = class { - constructor({ - parent, - label, - parent_label, - expandable, - is_root, - data, // eslint-disable-line - }) { + constructor({ parent, label, parent_label, expandable, is_root, data }) { $.extend(this, arguments[0]); this.loaded = 0; this.expanded = 0; diff --git a/frappe/public/js/frappe/utils/utils.js b/frappe/public/js/frappe/utils/utils.js index 3133d70188..4a8e519978 100644 --- a/frappe/public/js/frappe/utils/utils.js +++ b/frappe/public/js/frappe/utils/utils.js @@ -1084,8 +1084,8 @@ Object.assign(frappe.utils, { let expression_function = new Function(...variable_names, code); return expression_function(...variables); } catch (error) { - console.log("Error evaluating the following expression:"); // eslint-disable-line no-console - console.error(code); // eslint-disable-line no-console + console.log("Error evaluating the following expression:"); + console.error(code); throw error; } }, @@ -1557,8 +1557,8 @@ Object.assign(frappe.utils, { return title; }); } catch (error) { - console.log("Error while fetching link title."); // eslint-disable-line - console.log(error); // eslint-disable-line + console.log("Error while fetching link title."); + console.log(error); return Promise.resolve(name); } }, diff --git a/frappe/public/js/frappe/views/communication.js b/frappe/public/js/frappe/views/communication.js index 6baf4893e9..9b69ebee3c 100755 --- a/frappe/public/js/frappe/views/communication.js +++ b/frappe/public/js/frappe/views/communication.js @@ -609,7 +609,7 @@ frappe.views.CommunicationComposer = class { localforage.setItem(this.frm.doctype + this.frm.docname, message).catch((e) => { if (e) { // silently fail - console.log(e); // eslint-disable-line + console.log(e); console.warn( "[Communication] IndexedDB is full. Cannot save message as draft" ); // eslint-disable-line @@ -628,10 +628,10 @@ frappe.views.CommunicationComposer = class { localforage.removeItem(this.frm.doctype + this.frm.docname).catch((e) => { if (e) { // silently fail - console.log(e); // eslint-disable-line + console.log(e); console.warn( "[Communication] IndexedDB is full. Cannot save message as draft" - ); // eslint-disable-line + ); } }); } @@ -701,7 +701,7 @@ frappe.views.CommunicationComposer = class { try { me.success(r); } catch (e) { - console.log(e); // eslint-disable-line + console.log(e); } } } else { @@ -714,7 +714,7 @@ frappe.views.CommunicationComposer = class { try { me.error(r); } catch (e) { - console.log(e); // eslint-disable-line + console.log(e); } } } diff --git a/frappe/public/js/frappe/views/kanban/kanban_board.bundle.js b/frappe/public/js/frappe/views/kanban/kanban_board.bundle.js index 979f4fd6fb..30c218f475 100644 --- a/frappe/public/js/frappe/views/kanban/kanban_board.bundle.js +++ b/frappe/public/js/frappe/views/kanban/kanban_board.bundle.js @@ -96,7 +96,7 @@ frappe.provide("frappe.views"); }); }, function (err) { - console.error(err); // eslint-disable-line + console.error(err); } ); }, diff --git a/frappe/public/js/frappe/widgets/chart_widget.js b/frappe/public/js/frappe/widgets/chart_widget.js index 18f7459a6c..f13541e4f7 100644 --- a/frappe/public/js/frappe/widgets/chart_widget.js +++ b/frappe/public/js/frappe/widgets/chart_widget.js @@ -460,7 +460,6 @@ export default class ChartWidget extends Widget { } set_chart_actions(actions) { - /* eslint-disable indent */ this.chart_actions = $(`