forked from forgejo/forgejo
Add eslint-plugin-github
and fix issues (#29201)
This plugin has a few useful rules. The only thing I dislike about it is that it pulls in a rather big number of dependencies for react-related rules we don't use, but it can't really be avoided. Rule docs: https://github.com/github/eslint-plugin-github?tab=readme-ov-file#rules (cherry picked from commit 26b17537e651fe93ef9b64f961633cb4c0b8c2c3)
This commit is contained in:
parent
4b69d9e46d
commit
59ab49a7eb
9 changed files with 1026 additions and 38 deletions
|
@ -69,16 +69,12 @@ function initRepoIssueListCheckboxes() {
|
|||
}
|
||||
}
|
||||
|
||||
updateIssuesMeta(
|
||||
url,
|
||||
action,
|
||||
issueIDs,
|
||||
elementId,
|
||||
).then(() => {
|
||||
try {
|
||||
await updateIssuesMeta(url, action, issueIDs, elementId);
|
||||
window.location.reload();
|
||||
}).catch((reason) => {
|
||||
showErrorToast(reason.responseJSON.error);
|
||||
});
|
||||
} catch (err) {
|
||||
showErrorToast(err.responseJSON?.error ?? err.message);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue