Skip to content

Instantly share code, notes, and snippets.

View vanessabrazuna's full-sized avatar
🚀
Always looking for the next level

Vanessa Brazuna vanessabrazuna

🚀
Always looking for the next level
View GitHub Profile
@vanessabrazuna
vanessabrazuna / useLocation.tsx
Last active July 6, 2024 21:07
react-router-dom
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}
import { z } from 'zod'
const envSchema = z.object({
VITE_API_URL: z.string().url(),
})
export const env = envSchema.parse(import.meta.env)
nano ~/.zshrc - entrar
control o + enter + control x - salvar | sair
source ~/.zshrc - nova configuração no terminal
icons: ಠ - ❯
@vanessabrazuna
vanessabrazuna / .eslintrc.json
Last active March 14, 2024 22:11
eslint-config
{
"extends": ["@rocketseat/eslint-config/react"],
"plugins": ["simple-import-sort"],
"rules": {
"simple-import-sort/imports": "error"
}
}
{
"emmet.syntaxProfiles": {
"javascript": "jsx"
},
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 17,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,