Switch from eslint to oxlint (#34166)
* Fix type imports * Fix jsdoc * Fixup types * Fix stray awaits on non-thenables * Fixup imports * Fix splats * Fix this-context on callbacks * Memoise react contexts * Prefer find/flatMap * Make oxlint happier about our React keys * Avoid unsafe default function params * Fixup jsdoc * Fixup contexts * Switch from eslint to oxlint * Some oxlint-related tweaks * Iterate * Partial revert to defer some changes and shrink diff * Iterate * Add eslint-plugin-element-call and enable the copyright rule * Set strictStorePkgContentCheck * Iterate * Make sonar happy * Fix new lints
This commit is contained in:
@@ -22,6 +22,7 @@ import { ANNOTATION } from "../stale-screenshot-reporter.js";
|
||||
|
||||
// Taken from playwright utils, but it's not importable
|
||||
function sanitizeForFilePath(s: string): string {
|
||||
// oxlint-disable-next-line no-control-regex
|
||||
return s.replace(/[\x00-\x2C\x2E-\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g, "-");
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ type PaginationLinks = {
|
||||
first?: string;
|
||||
};
|
||||
|
||||
// oxlint-disable-next-line no-control-regex
|
||||
const ANSI_COLOUR_REGEX = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
|
||||
|
||||
// We see quite a few test flakes which are caused by the app exploding
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
import { Page } from "playwright-core";
|
||||
import { type Page } from "playwright-core";
|
||||
|
||||
/**
|
||||
* Close the release announcement with the given name.
|
||||
|
||||
Reference in New Issue
Block a user