View .gitconfig
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
# To open the .gitconfig file on xcode, run: git config --global core.editor code | |
# To edit the .gitconfig file, run: git config --global --edit | |
[core] | |
editor = code | |
[alias] | |
c = !git add --all && git commit -m | |
s = !git status -s | |
l = !git log --pretty=format:'%C(blue)%h %C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr' |
View ThemeProvider.tsx
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 React, { useMemo } from 'react'; | |
import { | |
useScreen, | |
ScreenContextData, | |
MediaQuery, | |
BreakpointValues, | |
rem, | |
getNearestBreakpointValue, | |
validateMediaQuery | |
} from 'responsive-native'; |
View useValidateForm.ts
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 { FormHandles, SubmitHandler } from '@unform/core'; | |
import { RefObject, useCallback, useState } from 'react'; | |
import { ObjectSchema, ValidationError } from 'yup'; | |
type Hook = <T>( | |
args: Props<T>, | |
) => { | |
validating: boolean; | |
handleSubmit: SubmitHandler<T>; | |
}; |
View hyper.js
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
View snippets.json
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
{ | |
"typescriptFunctionalComponent": { | |
"prefix": "rfc", | |
"body": [ | |
"import React from 'react';", | |
"", | |
"// import { Container } from './styles';", | |
"", | |
"interface Props {", | |
"", |
View settings.json
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
{ | |
"javascript.suggest.autoImports": true, | |
"explorer.confirmDelete": false, | |
"gitlens.codeLens.enabled": false, | |
"material-icon-theme.folders.associations": { | |
"subscribers": "messages", | |
"organisms": "public", | |
"kube": "kubernetes", | |
"entities": "class", | |
"modules": "components", |