Skip to content

Instantly share code, notes, and snippets.

View vanessabrazuna's full-sized avatar
🎯
Never stop learning

Vanessa Brazuna vanessabrazuna

🎯
Never stop learning
View GitHub Profile
{
"emmet.syntaxProfiles": {
"javascript": "jsx"
},
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 17,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
@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"
}
}
nano ~/.zshrc - entrar
control o + enter + control x - salvar | sair
source ~/.zshrc - nova configuração no terminal
icons: ಠ - ❯
@vanessabrazuna
vanessabrazuna / useLocation.tsx
Last active March 28, 2024 22:09
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)