summaryrefslogtreecommitdiff
path: root/source/features
diff options
context:
space:
mode:
Diffstat (limited to 'source/features')
-rw-r--r--source/features/bypass-checks.tsx1
-rw-r--r--source/features/show-names.tsx4
-rw-r--r--source/features/sort-conversations-by-update-time.tsx4
3 files changed, 2 insertions, 7 deletions
diff --git a/source/features/bypass-checks.tsx b/source/features/bypass-checks.tsx
index 0b7962ce..f8bc1602 100644
--- a/source/features/bypass-checks.tsx
+++ b/source/features/bypass-checks.tsx
@@ -37,7 +37,6 @@ function init(signal: AbortSignal): void {
[href^="/"]
)`,
- /* @ts-expect-error https://github.com/g-plane/typed-query-selector/issues/26 */
bypass,
{signal},
);
diff --git a/source/features/show-names.tsx b/source/features/show-names.tsx
index 55c19935..2b7ecb91 100644
--- a/source/features/show-names.tsx
+++ b/source/features/show-names.tsx
@@ -72,9 +72,7 @@ const usernameLinksSelector = [
// On dashboard `.text-bold` is required to not fetch avatars
'#dashboard a.text-bold[data-hovercard-type="user"]',
-
- // Due to: https://github.com/g-plane/typed-query-selector/issues/26
-] as unknown as Array<'a'>;
+] as const;
function init(signal: AbortSignal): void {
observe(usernameLinksSelector, batchUpdateLinks, {signal});
diff --git a/source/features/sort-conversations-by-update-time.tsx b/source/features/sort-conversations-by-update-time.tsx
index 99cec69f..9fa2dddb 100644
--- a/source/features/sort-conversations-by-update-time.tsx
+++ b/source/features/sort-conversations-by-update-time.tsx
@@ -1,7 +1,6 @@
import select from 'select-dom';
import * as pageDetect from 'github-url-detection';
import elementReady from 'element-ready';
-import {css} from 'code-tag';
import features from '../feature-manager';
import SearchQuery from '../github-helpers/search-query';
@@ -57,7 +56,7 @@ function updateLink(link: HTMLAnchorElement): void {
function init(signal: AbortSignal): void {
// Get issues links that don't already have a specific sorting applied
observe(
- css`
+ `
a:is(
[href*="/issues"],
[href*="/pulls"],
@@ -68,7 +67,6 @@ function init(signal: AbortSignal): void {
.issues-reset-query
)
`,
- // @ts-expect-error https://github.com/g-plane/typed-query-selector/issues/26
updateLink,
{signal},
);