(frontend) add @typescript-eslint/parser

In order to work correctly
@typescript-eslint/eslint-plugin requires
@typescript-eslint/parser to be installed as well.
We added @typescript-eslint/parser, and
upgraded @typescript-eslint/eslint-plugin to 8.1.0.
We fixed the linting issues related to the
upgrade.
This commit is contained in:
Anthony LC
2024-08-20 16:54:55 +02:00
committed by Anthony LC
parent a970a83229
commit 4ed964240f
5 changed files with 40 additions and 73 deletions

View File

@@ -17,7 +17,6 @@ export interface TextProps extends BoxProps {
$isMaterialIcon?: boolean;
$weight?: CSSProperties['fontWeight'];
$textAlign?: CSSProperties['textAlign'];
// eslint-disable-next-line @typescript-eslint/ban-types
$size?: TextSizes | (string & {});
$theme?:
| 'primary'

View File

@@ -49,5 +49,7 @@ export function revertUpdate(
currentStateVector,
);
Y.applyUpdate(doc, revertChangesSinceSnapshotUpdate, snapshotOrigin);
} catch (e) {}
} catch (e) {
console.error('Failed to revert the doc to a previous state', e);
}
}

View File

@@ -24,7 +24,6 @@ const spacings = {
};
type SpacingsKey = keyof typeof spacings;
// eslint-disable-next-line @typescript-eslint/ban-types
export type Spacings = SpacingsKey | (string & {});
export const spacingValue = (value?: Spacings) =>