Use rome and initial format

This commit is contained in:
Sacha Weatherstone
2023-07-09 13:59:31 +10:00
parent a65bc37be5
commit 20ac657b51
90 changed files with 3350 additions and 3092 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import {
IsInt,
IsNumber,
IsString,
Length
Length,
} from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
+6
View File
@@ -25,4 +25,10 @@ export class DeviceValidation
@IsInt()
nodeInfoBroadcastSecs: number;
@IsBoolean()
doubleTapAsButtonPress: boolean;
@IsBoolean()
isManaged: boolean;
}
+3
View File
@@ -31,4 +31,7 @@ export class DisplayValidation
@IsBoolean()
headingBold: boolean;
@IsBoolean()
wakeOnTapOrMotion: boolean;
}
+1 -1
View File
@@ -4,7 +4,7 @@ import {
IsIP,
IsOptional,
IsString,
Length
Length,
} from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
+7 -2
View File
@@ -3,8 +3,7 @@ import { IsBoolean, IsInt, IsNumber } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
export class PositionValidation
implements
Omit<Protobuf.Config_PositionConfig, keyof Protobuf.native.Message>
implements Omit<Protobuf.Config_PositionConfig, keyof Protobuf.native.Message>
{
@IsInt()
positionBroadcastSecs: number;
@@ -32,4 +31,10 @@ export class PositionValidation
@IsInt()
txGpio: number;
@IsInt()
broadcastSmartMinimumDistance: number;
@IsInt()
broadcastSmartMinimumIntervalSecs: number;
}
+3
View File
@@ -30,4 +30,7 @@ export class PowerValidation
@IsInt()
minWakeSecs: number;
@IsInt()
deviceBatteryInaAddress: number;
}
+10 -1
View File
@@ -1,4 +1,4 @@
import { IsBoolean, Length } from "class-validator";
import { IsBoolean, IsString, Length } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
@@ -23,4 +23,13 @@ export class MQTTValidation
@IsBoolean()
jsonEnabled: boolean;
@IsBoolean()
tlsEnabled: boolean;
@IsString()
root: string;
@IsBoolean()
proxyToClientEnabled: boolean;
}
+3
View File
@@ -26,4 +26,7 @@ export class SerialValidation
@IsEnum(Protobuf.ModuleConfig_SerialConfig_Serial_Mode)
mode: Protobuf.ModuleConfig_SerialConfig_Serial_Mode;
@IsBoolean()
overrideConsoleSerialPort: boolean;
}
+6
View File
@@ -20,4 +20,10 @@ export class TelemetryValidation
@IsBoolean()
environmentDisplayFahrenheit: boolean;
@IsBoolean()
airQualityEnabled: boolean;
@IsInt()
airQualityInterval: number;
}