This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Link, LinkProps, useLocation } from 'react-router-dom' | |
export type NavLinkProps = LinkProps | |
export function NavLink(props: NavLinkProps) { | |
const { pathname } = useLocation() | |
return ( | |
<Link | |
data-current={pathname === props.to} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { z } from 'zod' | |
const envSchema = z.object({ | |
VITE_API_URL: z.string().url(), | |
}) | |
export const env = envSchema.parse(import.meta.env) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano ~/.zshrc - entrar | |
control o + enter + control x - salvar | sair | |
source ~/.zshrc - nova configuração no terminal | |
icons: ಠ - ❯ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": ["@rocketseat/eslint-config/react"], | |
"plugins": ["simple-import-sort"], | |
"rules": { | |
"simple-import-sort/imports": "error" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"emmet.syntaxProfiles": { | |
"javascript": "jsx" | |
}, | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.fontSize": 17, | |
"javascript.suggest.autoImports": true, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"editor.rulers": [ | |
80, |