Linting of layer files
This commit is contained in:
parent
01d80ef4e8
commit
39166ff806
4 changed files with 13 additions and 10 deletions
|
@ -491,8 +491,8 @@
|
|||
],
|
||||
"id": "bike_repair_station-valves"
|
||||
},
|
||||
{ "id": "bike_repair_station-electrical_pump",
|
||||
|
||||
{
|
||||
"id": "bike_repair_station-electrical_pump",
|
||||
"question": {
|
||||
"en": "Is this an electric bike pump?",
|
||||
"nl": "Is dit een electrische fietspomp?",
|
||||
|
@ -535,7 +535,8 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{ "id": "bike_repair_station-manometer",
|
||||
{
|
||||
"id": "bike_repair_station-manometer",
|
||||
"question": {
|
||||
"en": "Does the pump have a pressure indicator or manometer?",
|
||||
"nl": "Heeft deze pomp een luchtdrukmeter?",
|
||||
|
|
|
@ -386,8 +386,8 @@
|
|||
"id": "sport_pitch-opening_hours"
|
||||
},
|
||||
"questions",
|
||||
{ "id": "sport-pitch-reviews",
|
||||
|
||||
{
|
||||
"id": "sport-pitch-reviews",
|
||||
"render": "{reviews(name, sportpitch)}"
|
||||
}
|
||||
],
|
||||
|
|
|
@ -238,7 +238,8 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{ "id": "tree-decidouous",
|
||||
{
|
||||
"id": "tree-decidouous",
|
||||
"question": {
|
||||
"nl": "Is deze boom groenblijvend of bladverliezend?",
|
||||
"en": "Is this tree evergreen or deciduous?",
|
||||
|
|
|
@ -32,15 +32,16 @@ for (const layerFile of layerFiles) {
|
|||
fixLayerConfig(layerFile.parsed)
|
||||
writeFileSync(layerFile.path, JSON.stringify(layerFile.parsed, null, " "))
|
||||
}
|
||||
|
||||
/*
|
||||
const themeFiles = ScriptUtils.getThemeFiles()
|
||||
for (const themeFile of themeFiles) {
|
||||
for (const layerConfig of themeFile.parsed.layers) {
|
||||
for (const layerConfig of themeFile.parsed.layers ?? []) {
|
||||
if(typeof layerConfig === "string" || layerConfig["builtin"]!== undefined){
|
||||
continue
|
||||
}
|
||||
// @ts-ignore
|
||||
fixLayerConfig(layerConfig)
|
||||
}
|
||||
writeFileSync(themeFile.path, JSON.stringify(themeFile.parsed, null, " "))
|
||||
}
|
||||
// writeFileSync(themeFile.path, JSON.stringify(themeFile.parsed, null, " "))
|
||||
}
|
||||
//*/
|
Loading…
Reference in a new issue