Skip to content

Commit

Permalink
Suppress eslint errors for handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Sep 12, 2024
1 parent 68e24da commit 0f245aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const data = {
},
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Office.initialize = function (reason) {};

function toArray(str) {
Expand Down Expand Up @@ -97,6 +98,7 @@ function getAllData(callback) {
});
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function onMessageSend(event) {
getAllData(function () {
console.debug(data);
Expand All @@ -122,6 +124,7 @@ function onMessageSend(event) {
});
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function onNewMessageComposeCreated(event) {
Office.context.mailbox.item.subject.setAsync("新規メールの件名", function (asyncResult) {
if (asyncResult.status === Office.AsyncResultStatus.Succeeded) {
Expand Down
4 changes: 4 additions & 0 deletions src/web/dialog.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let totalCheckboxCount = 0;

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Office.initialize = function (reason) {};

Office.onReady(function () {
Expand All @@ -13,14 +14,17 @@ function sendStatusToParent(status) {
Office.context.ui.messageParent(jsonMessage);
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function onOk() {
sendStatusToParent("ok");
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function onCancel() {
sendStatusToParent("cancel");
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function checkboxChanged() {
const checkedCount = $(".check-target:checked").length;
const isAllBoxChecked = checkedCount === totalCheckboxCount;
Expand Down

0 comments on commit 0f245aa

Please sign in to comment.