Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
indietyp committed Dec 11, 2024
1 parent 4e15a32 commit c5535c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions libs/@local/eslint/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface Options {

export const create = (
projectDirectory: string,
// eslint-disable-next-line fsecond/prefer-destructured-optionals
options?: PartialDeep<Options>,
): readonly ESConfig[] => {
const sheriffOptions: SheriffSettings = {
Expand Down
12 changes: 3 additions & 9 deletions tests/hash-playwright/tests/shared/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,17 @@ export * from "@playwright/test";
export const test = base.extend({
page: async ({ page }, use) => {
const messages: string[] = [];
// @todo: https://linear.app/hash/issue/H-3769/investigate-new-eslint-errors
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access

page.on("console", (msg) => {
// @todo: https://linear.app/hash/issue/H-3769/investigate-new-eslint-errors
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
const text = msg.text();
// @todo: https://linear.app/hash/issue/H-3769/investigate-new-eslint-errors
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
if (tolerableConsoleMessageMatches.some((match) => match.test(text))) {
return;
}
// @todo: https://linear.app/hash/issue/H-3769/investigate-new-eslint-errors
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access

messages.push(`[${msg.type()}] ${msg.text()}`);
});
// @todo: https://linear.app/hash/issue/H-3769/investigate-new-eslint-errors
// eslint-disable-next-line react-hooks/rules-of-hooks, @typescript-eslint/no-unsafe-call
// eslint-disable-next-line react-hooks/rules-of-hooks
await use(page);
expect(
messages,
Expand Down

0 comments on commit c5535c4

Please sign in to comment.