mirror of
				https://github.com/bartvdbraak/hellob.art.git
				synced 2025-10-31 12:19:10 +00:00 
			
		
		
		
	fix: resolve lint, format and type errors
This commit is contained in:
		
							parent
							
								
									539dd2acbd
								
							
						
					
					
						commit
						16045ca5ba
					
				
					 4 changed files with 9 additions and 7 deletions
				
			
		|  | @ -1,3 +1,7 @@ | |||
| module.exports = { | ||||
|   '**/*.{js,ts,cjs,svelte,tsx}': [() => 'tsc -p tsconfig.json --noEmit', 'eslint --fix', 'prettier --write'] | ||||
| 	'**/*.{js,ts,cjs,svelte,tsx}': [ | ||||
| 		() => 'tsc -p tsconfig.json --noEmit', | ||||
| 		'eslint --fix', | ||||
| 		'prettier --write' | ||||
| 	] | ||||
| }; | ||||
|  | @ -30,8 +30,8 @@ function sendToAnalytics( | |||
| 		debug: boolean; | ||||
| 	} | ||||
| ) { | ||||
| 	const page = Object.entries(options.params).reduce( | ||||
| 		(acc, [key, value]) => acc.replace(value, `[${key}]`), | ||||
| 	const page = (Object.entries(options.params) as [string, string][]).reduce( | ||||
| 		(acc: string, [key, value]: [string, string]) => acc.replace(value, `[${key}]`), | ||||
| 		options.path | ||||
| 	); | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										0
									
								
								src/routes/blog/[slug]/$types.d.ts
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										0
									
								
								src/routes/blog/[slug]/$types.d.ts
									
										
									
									
										vendored
									
									
								
							|  | @ -1,10 +1,8 @@ | |||
| <script> | ||||
| 	/** @type {import('./$types').PageData} */ | ||||
| 	export let data; | ||||
| </script> | ||||
| 
 | ||||
| <svelte:head> | ||||
| 	<title>hellob.art — {data.title}</title> | ||||
| 	<title>hellob.art —</title> | ||||
| </svelte:head> | ||||
| 
 | ||||
| <!-- <h1>{data.title}</h1> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue