diff --git a/scripts/lint.ts b/scripts/lint.ts index 4857af6cbe..460eb8c874 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)