Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint #6326

Merged
merged 12 commits into from
Feb 11, 2023
Merged

Lint #6326

merged 12 commits into from
Feb 11, 2023

Conversation

fregante
Copy link
Member

馃槑

@fregante fregante added the meta Related to Refined GitHub itself label Feb 10, 2023
@@ -71,7 +71,7 @@ function linkBestComment(bestComment: HTMLElement): void {
}

const text = select('.comment-body', bestComment)!.textContent!.slice(0, 100);
const {hash} = select<HTMLAnchorElement>('a.js-timestamp', bestComment)!; // TODO: Drop generic once TypeScript sorts it out, it shouldn't be needed
const {hash} = select('a.js-timestamp', bestComment)!;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I knew I was right!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As always!

{forEach: linkify},
);
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change tested, it works

append: createReviewLink,
});
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change tested, it works

): NodeListOf<ParseSelector<S, HTMLElement>>;
}

interface Element {
closest<S extends string>(selector: S): ParseSelector<S, HTMLElement> | null;
closest<S extends string>(selector: S | readonly S[]): ParseSelector<S, HTMLElement> | null;
matches(selectors: string | readonly string[]): boolean;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readonly allows passing arrays like ['input', 'textarea'] as const, which are tighter than string[]

@@ -42,7 +42,7 @@
},
"dependencies": {
"@cheap-glitch/mi-cron": "^1.0.1",
"@primer/octicons-react": "^17.5.0",
"@primer/octicons-react": "^17.11.1",
Copy link
Member Author

@fregante fregante Feb 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to undo this because dom-chef started failing 馃ゲ

#6000

@fregante fregante added this pull request to the merge queue Feb 11, 2023
@fregante fregante removed this pull request from the merge queue due to a manual request Feb 11, 2023
@fregante fregante merged commit 1c04d21 into main Feb 11, 2023
@fregante fregante deleted the lint-2023 branch February 11, 2023 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Related to Refined GitHub itself
Development

Successfully merging this pull request may close these issues.

None yet

2 participants