This file contains hidden or 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
interface User { | |
email: string; | |
password: string; | |
avatar_url?: string; | |
} | |
// Partial<Type> | |
type PartialUser = Partial<User>; | |
/** | |
type PartialUser = { |
This file contains hidden or 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
{ | |
// Remember install the Debugger for Microsoft Edge Extension. | |
// https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-edge | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "edge", | |
"request": "launch", | |
"name": "Launch Edge against localhost", | |
"url": "http://localhost:3000", |
This file contains hidden or 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 React, { useCallback } from "react"; | |
import debounce from "lodash/debounce"; | |
import AsyncSelect from "react-select/async"; | |
import axios from "axios"; | |
const App = (props) => { | |
const options = [ | |
{ label: "Option 1", value: 1 }, | |
{ label: "Option 2", value: 2 }, | |
{ label: "Option 3", value: 3 } |
This file contains hidden or 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
{ | |
"env": { | |
"browser": true, | |
"es2020": true | |
}, | |
"extends": [ | |
"plugin:react/recommended", | |
"airbnb", | |
"plugin:@typescript-eslint/recommended", | |
"prettier/@typescript-eslint", |
This file contains hidden or 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 React from 'react'; | |
import { render, fireEvent, waitFor } from '@testing-library/react'; | |
import { FiMail } from 'react-icons/fi'; | |
import colors from '~/styles/colors'; | |
import Input from '~/components/Input'; | |
jest.mock('@unform/core', () => ({ |
This file contains hidden or 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
# Aqui é o nome que você pode dar ao processo de CI. | |
name: Java CI with Maven | |
on: | |
push: | |
# Aqui você diz a partir de qual branch ele irá fazer o processo de CI. | |
# Nesse caso está configurado no master, ou seja, sempre que o master receber | |
# um novo commit, será feito a CI. | |
branches: [ master ] | |
pull_request: |
This file contains hidden or 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
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": [ | |
"plugin:react/recommended", | |
"airbnb", | |
"plugin:@typescript-eslint/recommended", | |
"prettier/@typescript-eslint", |
NewerOlder