From ae68a09775540fc766c2d4690d5a1ecd4fa7e878 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 9 Feb 2022 03:48:55 +0100 Subject: [PATCH] Fix linting script --- scripts/lint.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/lint.ts b/scripts/lint.ts index 4857af6cb..460eb8c87 100644 --- a/scripts/lint.ts +++ b/scripts/lint.ts @@ -10,8 +10,7 @@ import {FixLegacyTheme, UpdateLegacyLayer} from "../Models/ThemeConfig/Conversio const layerFiles = ScriptUtils.getLayerFiles(); for (const layerFile of layerFiles) { try { - const state: any = undefined; // FIXME - const fixed = new UpdateLegacyLayer().convertStrict(state, layerFile.parsed, "While linting " + layerFile.path); + const fixed = new UpdateLegacyLayer().convertStrict(layerFile.parsed, "While linting " + layerFile.path); writeFileSync(layerFile.path, JSON.stringify(fixed, null, " ")) } catch (e) { console.error("COULD NOT LINT LAYER" + layerFile.path + ":\n\t" + e) @@ -21,8 +20,7 @@ for (const layerFile of layerFiles) { const themeFiles = ScriptUtils.getThemeFiles() for (const themeFile of themeFiles) { try { - const state: any = undefined; // FIXME - const fixed = new FixLegacyTheme().convertStrict(state, themeFile.parsed, "While linting " + themeFile.path); + const fixed = new FixLegacyTheme().convertStrict(themeFile.parsed, "While linting " + themeFile.path); writeFileSync(themeFile.path, JSON.stringify(fixed, null, " ")) } catch (e) { console.error("COULD NOT LINT THEME" + themeFile.path + ":\n\t" + e)