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
// Use this: | |
import MyUtilFn from 'utils/MyUtilFn' | |
// Instead of that: | |
import MyUtilFn from '../../../../utils/MyUtilFn' |
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
// babel.config.js | |
module.exports = { | |
presets: ['module:metro-react-native-babel-preset'], | |
plugins: [ | |
[ | |
'module-resolver', | |
{ | |
root: ['./src'], | |
}, | |
], |
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
{ | |
"plugins": [ | |
[ | |
"module-resolver", | |
{ | |
"root": ["./src"], | |
"alias": { | |
"underscore": "lodash", | |
"icons": "./assets/icons", | |
"imgs": "./assets/imgs", |
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
settings: { | |
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'], | |
'import/parsers': { | |
'@typescript-eslint/parser': ['.ts', '.tsx'], | |
}, | |
'import/resolver': { | |
+ 'babel-module': {}, | |
node: { | |
extensions: ['.js', '.jsx', '.ts', '.tsx', '.native.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
{ | |
"compilerOptions": { | |
+ "baseUrl": "./src", | |
"esModuleInterop": true, | |
"jsx": "react", | |
"lib": ["es6"], | |
"moduleResolution": "node", | |
"noEmit": true, | |
"strict": true, | |
"target": "esnext", |
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
#!/bin/bash | |
# You can make the script more generic by changing the matching pattern | |
SRC_PATTERN=".*\.(ts|tsx)$" | |
# needed bc env vars change when run inside a git hook | |
# https://stackoverflow.com/questions/3542854/calling-git-pull-from-a-git-post-update-hook | |
# https://serverfault.com/questions/107608/git-post-receive-hook-with-git-pull-failed-to-find-a-valid-git-directory | |
unset $(git rev-parse --local-env-vars) |
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
🌞 Morning 117 commits █▍░░░░░░░░░░░░░░░░░░░ 6.6% | |
🌆 Daytime 541 commits ██████▍░░░░░░░░░░░░░░ 30.5% | |
🌃 Evening 621 commits ███████▎░░░░░░░░░░░░░ 35.1% | |
🌙 Night 492 commits █████▊░░░░░░░░░░░░░░░ 27.8% |