chore(root): migrate to biome

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-16 12:20:40 +02:00
parent 1f6e198336
commit 32e91959f6
383 changed files with 1943 additions and 3085 deletions

View File

@@ -1,5 +1,3 @@
/* eslint-disable @typescript-eslint/unbound-method */
import type {
OpenPanelOptions as OpenPanelBaseOptions,
TrackProperties,
@@ -18,7 +16,7 @@ export type OpenPanelOptions = OpenPanelBaseOptions & {
function toCamelCase(str: string) {
return str.replace(/([-_][a-z])/gi, ($1) =>
$1.toUpperCase().replace('-', '').replace('_', '')
$1.toUpperCase().replace('-', '').replace('_', ''),
);
}
@@ -108,7 +106,7 @@ export class OpenPanel extends OpenPanelBase {
return ret;
};
window.addEventListener('popstate', function () {
window.addEventListener('popstate', () => {
window.dispatchEvent(new Event('locationchange'));
});
@@ -155,7 +153,7 @@ export class OpenPanel extends OpenPanelBase {
screenView(path: string, properties?: TrackProperties): void;
screenView(
pathOrProperties?: string | TrackProperties,
propertiesOrUndefined?: TrackProperties
propertiesOrUndefined?: TrackProperties,
): void {
if (this.isServer()) {
return;