Skip to content

Commit

Permalink
cleanup eslint exception
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismiceli committed Sep 26, 2024
1 parent c6593f2 commit 7432e08
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tools/project_manager/show_word_context.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ window.addEventListener("DOMContentLoaded", function () {
let layout;
try {
layout = JSON.parse(localStorage.getItem(storageKeyLayout));
// eslint-disable-next-line no-unused-vars
} catch (error) {
} catch {
layout = null;
}
if (!layout || !layout.splitDirection || !layout.splitPercent) {
Expand Down
10 changes: 9 additions & 1 deletion tools/proofers/character_selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,15 @@ $(function () {

// Draw the MRU selector button and empty block
// this duplicates the html code defined in CharacterSelector.inc
$("#selector_row").prepend($("<button />", { type: "button", id: "mru_code", title: mruTitle }).addClass("selector_button").text(mruAbbrev));
$("#selector_row").prepend(
$("<button />", {
type: "button",
id: "mru_code",
title: mruTitle,
})
.addClass("selector_button")
.text(mruAbbrev),
);
$("#char-selector").append($("<div />").addClass("mru_code key-block"));

// draw the picker buttons
Expand Down

0 comments on commit 7432e08

Please sign in to comment.