Instalaciones
npm i sanitize-html markdown-it
npm i -D @types/markdown-it @types/sanitize-html
bun i sanitize-html markdown-it
bun i -d @types/markdown-it @types/sanitize-htmlroot = true
[*]
indent_style = space
| import { useEffect, useMemo, useState } from 'react'; | |
| export const useForm = ( initialForm = {}, formValidations = {}) => { | |
| const [ formState, setFormState ] = useState( initialForm ); | |
| const [ formValidation, setFormValidation ] = useState({}); | |
| useEffect(() => { | |
| createValidators(); | |
| }, [ formState ]) |
rebase vs merge).rebase vs merge)reset vs checkout vs revert)git rev-parse)pull vs fetch)stash vs branch)reset vs checkout vs revert)| # git init: Initializes a new Git repository in the current directory. | |
| # git add .: Adds all changes in the working directory to the staging area. | |
| # git reset .: Unstages changes that were previously added to the staging area. | |
| # git commit: Commits changes in the staging area to the Git repository. This opens a text editor for adding a commit message. | |
| # git checkout -- .: Discards changes in the working directory and reverts to the last committed state. |
| export const regularExps = { | |
| email: /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/, | |
| } |
| PORT=3000 | |
| PUBLIC_PATH=public | |
| POSTGRES_URL=postgresql://postgres:123456@localhost:5432/TODO | |
| POSTGRES_USER=postgres | |
| POSTGRES_DB=TODO | |
| POSTGRES_PORT=5432 | |
| POSTGRES_PASSWORD=123456 |
Documentación oficial sobre Jest
npm install -D jest @types/jest ts-jest supertest