Update JS dependencies, adjust eslint config (#17904)

- Update all JS dependencies to latest versions
- Add new lint rules, enable es2022 eslint parser features
- Disable github/no-then, I feel the rule was too restricting
This commit is contained in:
silverwind 2021-12-03 22:43:14 -08:00 committed by GitHub
parent c7c723c548
commit f7094c8161
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 1490 additions and 1252 deletions

View file

@ -162,7 +162,7 @@ export function initRepoCommentForm() {
'clear',
$listMenu.data('issue-id'),
'',
).then(() => window.location.reload()); // eslint-disable-line github/no-then
).then(() => window.location.reload());
}
$(this).parent().find('.item').each(function () {
@ -205,7 +205,7 @@ export function initRepoCommentForm() {
'',
$menu.data('issue-id'),
$(this).data('id'),
).then(() => window.location.reload()); // eslint-disable-line github/no-then
).then(() => window.location.reload());
}
let icon = '';
@ -238,7 +238,7 @@ export function initRepoCommentForm() {
'',
$menu.data('issue-id'),
$(this).data('id'),
).then(() => window.location.reload()); // eslint-disable-line github/no-then
).then(() => window.location.reload());
}
$list.find('.selected').html('');