Add wrong default import from json files to code quality checks, fix those imports
This commit is contained in:
parent
71c815d37d
commit
ce44f34bf3
42 changed files with 167 additions and 148 deletions
|
@ -2,7 +2,7 @@ import { appendFileSync, existsSync, mkdirSync, readFileSync, writeFile, writeFi
|
|||
import Locale from "../UI/i18n/Locale"
|
||||
import Translations from "../UI/i18n/Translations"
|
||||
import { Translation } from "../UI/i18n/Translation"
|
||||
import * as all_known_layouts from "../assets/generated/known_layers_and_themes.json"
|
||||
import all_known_layouts from "../assets/generated/known_layers_and_themes.json"
|
||||
import { LayoutConfigJson } from "../Models/ThemeConfig/Json/LayoutConfigJson"
|
||||
import LayoutConfig from "../Models/ThemeConfig/LayoutConfig"
|
||||
import xml2js from "xml2js"
|
||||
|
@ -295,7 +295,7 @@ async function createIndexFor(theme: LayoutConfig) {
|
|||
const filename = "index_" + theme.id + ".ts"
|
||||
writeFileSync(
|
||||
filename,
|
||||
`import * as themeConfig from "./assets/generated/themes/${theme.id}.json"\n`
|
||||
`import themeConfig from "./assets/generated/themes/${theme.id}.json"\n`
|
||||
)
|
||||
appendFileSync(filename, codeTemplate)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue