forked from MapComplete/MapComplete
		
	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
				
			
		|  | @ -16,10 +16,10 @@ import RewritableConfigJson from "../Json/RewritableConfigJson" | |||
| import SpecialVisualizations from "../../../UI/SpecialVisualizations" | ||||
| import Translations from "../../../UI/i18n/Translations" | ||||
| import { Translation } from "../../../UI/i18n/Translation" | ||||
| import * as tagrenderingconfigmeta from "../../../assets/tagrenderingconfigmeta.json" | ||||
| import tagrenderingconfigmeta from "../../../assets/tagrenderingconfigmeta.json" | ||||
| import { AddContextToTranslations } from "./AddContextToTranslations" | ||||
| import FilterConfigJson from "../Json/FilterConfigJson" | ||||
| import * as predifined_filters from "../../../assets/layers/filters/filters.json" | ||||
| import predifined_filters from "../../../assets/layers/filters/filters.json" | ||||
| 
 | ||||
| class ExpandFilter extends DesugaringStep<LayerConfigJson> { | ||||
|     private static load_filters(): Map<string, FilterConfigJson> { | ||||
|  | @ -730,8 +730,7 @@ export class RewriteSpecial extends DesugaringStep<TagRenderingConfigJson> { | |||
|     } { | ||||
|         const errors = [] | ||||
|         json = Utils.Clone(json) | ||||
|         const paths: { path: string[]; type?: any; typeHint?: string }[] = | ||||
|             tagrenderingconfigmeta["default"] ?? tagrenderingconfigmeta | ||||
|         const paths: { path: string[]; type?: any; typeHint?: string }[] = tagrenderingconfigmeta | ||||
|         for (const path of paths) { | ||||
|             if (path.typeHint !== "rendered") { | ||||
|                 continue | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue