chore: fix eslint in blocksuite (#9232)

This commit is contained in:
Saul-Mirone
2024-12-20 16:48:10 +00:00
parent bfcc53dc1f
commit 3a82da0e5b
269 changed files with 935 additions and 842 deletions
@@ -151,7 +151,7 @@ export class MindmapElementModel extends GfxGroupLikeElementModel<MindmapElement
private _queuedLayout = false;
private _stashedNode = new Set<string>();
private readonly _stashedNode = new Set<string>();
private _tree!: MindmapRoot;
@@ -77,7 +77,7 @@ export abstract class MindmapStyleGetter {
}
export class StyleOne extends MindmapStyleGetter {
private _colorOrders = [
private readonly _colorOrders = [
LineColor.Purple,
LineColor.Magenta,
LineColor.Orange,
@@ -188,7 +188,7 @@ export class StyleOne extends MindmapStyleGetter {
export const styleOne = new StyleOne();
export class StyleTwo extends MindmapStyleGetter {
private _colorOrders = [
private readonly _colorOrders = [
ShapeFillColor.Blue,
'#7ae2d5',
ShapeFillColor.Yellow,
@@ -298,7 +298,11 @@ export class StyleTwo extends MindmapStyleGetter {
export const styleTwo = new StyleTwo();
export class StyleThree extends MindmapStyleGetter {
private _strokeColor = [LineColor.Yellow, LineColor.Green, LineColor.Teal];
private readonly _strokeColor = [
LineColor.Yellow,
LineColor.Green,
LineColor.Teal,
];
readonly root = {
radius: 10,
@@ -402,7 +406,7 @@ export class StyleThree extends MindmapStyleGetter {
export const styleThree = new StyleThree();
export class StyleFour extends MindmapStyleGetter {
private _colors = [
private readonly _colors = [
ShapeFillColor.Purple,
ShapeFillColor.Magenta,
ShapeFillColor.Orange,