Skip to content

Instantly share code, notes, and snippets.

View raphabarreto's full-sized avatar
🎯
Focusing

Raphael Barreto raphabarreto

🎯
Focusing
View GitHub Profile
@raphabarreto
raphabarreto / ReactotronConfig.js
Created April 26, 2020 14:35
Reactotron configuration
import Reactotron from 'reactotron-react-native';
import { reactotronRedux } from 'reactotron-redux';
import reactotronSaga from 'reactotron-redux-saga';
import AsyncStorage from '@react-native-community/async-storage';
if (__DEV__) {
const tron = Reactotron.setAsyncStorageHandler(AsyncStorage)
.configure({ host: 'YOUR IP' })
.use(reactotronRedux())
.use(reactotronSaga())
@raphabarreto
raphabarreto / json-server.txt
Last active February 15, 2022 21:10
Json Server host configuration
yarn json-server --host ip api.json -p 3333
** Don´t forget to change the IP
@raphabarreto
raphabarreto / package.json
Created April 26, 2020 14:27
Package.json configuration with Husky + Lint-Staged + Commitizen
{
"name": "lint-commit",
"version": "1.0.0",
"main": "index.js",
"author": "Raphael Barreto <tnt.raphael@gmail.com>",
"scripts": {
"commit": "git-cz"
},
"license": "MIT",
"husky": {
@raphabarreto
raphabarreto / .huskyrc
Created April 26, 2020 14:26
Husky configuration with lint-staged
{
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
* text=auto eol=lf
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command": "closePane",
"keys": "ctrl+w"
},
{
"command":