➕(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:
@@ -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'
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user