make eslint happy
This commit is contained in:
		
							parent
							
								
									f2cf1d8c79
								
							
						
					
					
						commit
						439135944c
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -22,7 +22,11 @@ export function ago(date: number | string | Date): string { | ||||||
|   } else if (diffSeconds < WEEK) { |   } else if (diffSeconds < WEEK) { | ||||||
|     return `${Math.floor(diffSeconds / DAY)}d` |     return `${Math.floor(diffSeconds / DAY)}d` | ||||||
|   } else { |   } else { | ||||||
|     return new Date(ts).toLocaleDateString('en-us', {year: 'numeric', month: 'short', day: 'numeric'}) |     return new Date(ts).toLocaleDateString('en-us', { | ||||||
|  |       year: 'numeric', | ||||||
|  |       month: 'short', | ||||||
|  |       day: 'numeric', | ||||||
|  |     }) | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue