Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"organizeImports": {
"enabled": true
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
},
@d3vlopes
d3vlopes / models.ts
Last active May 28, 2024 01:48
Interface vs Type
interface SectionModel {
id: string;
heading: string;
}
interface ImageModel {
src: string;
alt: string;
}
@d3vlopes
d3vlopes / formatPrice.ts
Created September 17, 2022 19:04
FormatPrice
export const formatPrice = (value: number) => {
return value.toLocaleString('pt-BR', { minimumFractionDigits: 2 })
}