mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 01:03:01 +02:00
CODEBASE: Expand lint rules, and Aliases are stored as maps (#501)
This commit is contained in:
@@ -82,10 +82,10 @@ export const sanitizeTheme = (theme: IScriptEditorTheme): void => {
|
||||
continue;
|
||||
}
|
||||
|
||||
const repairBlock = (block: { [key: string]: object | string }): void => {
|
||||
const repairBlock = (block: Record<string, object | string>): void => {
|
||||
for (const [k, v] of Object.entries(block)) {
|
||||
if (typeof v === "object") {
|
||||
repairBlock(v as { [key: string]: string });
|
||||
repairBlock(v as Record<string, string>);
|
||||
} else if (!v.match(colorRegExp)) block[k] = "FF0000";
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user