Update prettier to latest. Remove tslint (#1641)

* Rev up prettier

* Reformat

* Remove deprecated tslint

* Remove call to tslint and update package-lock.json
This commit is contained in:
Laurent Nguyen
2023-10-03 15:13:24 +00:00
committed by GitHub
parent e3c168b7be
commit 90c1439d34
311 changed files with 1899 additions and 2194 deletions

View File

@@ -53,7 +53,7 @@ const onRegionsChange = (newValue: InputType, currentState: Map<string, SmartUiI
const onEnableDbLevelThroughputChange = (
newValue: InputType,
currentState: Map<string, SmartUiInput>
currentState: Map<string, SmartUiInput>,
): Map<string, SmartUiInput> => {
currentState.set("enableDbLevelThroughput", { value: newValue });
const currentDbThroughput = currentState.get("dbThroughput");
@@ -64,7 +64,7 @@ const onEnableDbLevelThroughputChange = (
const validate = (
currentvalues: Map<string, SmartUiInput>,
baselineValues: ReadonlyMap<string, SmartUiInput>
baselineValues: ReadonlyMap<string, SmartUiInput>,
): void => {
if (currentvalues.get("dbThroughput") === baselineValues.get("dbThroughput")) {
throw new Error("DbThroughputValidationError");
@@ -87,7 +87,7 @@ export default class SelfServeExample extends SelfServeBaseClass {
*/
public onSave = async (
currentValues: Map<string, SmartUiInput>,
baselineValues: ReadonlyMap<string, SmartUiInput>
baselineValues: ReadonlyMap<string, SmartUiInput>,
): Promise<OnSaveResult> => {
validate(currentValues, baselineValues);
const regions = Regions[currentValues.get("regions")?.value as keyof typeof Regions];