Say you have the following module:
const SomeModule = () => {
const add: number = (a: number, b: number) => a + b;
const subtract: number = (a: number, b: number) => a - b;
return {
add,
subtract
# This is Git's per-user configuration file. | |
[user] | |
name = Lewis James-Odwin | |
email = [email protected] | |
[core] | |
editor = "code -w" | |
excludesfile = /Users/lewisjamesodwin/.gitignore_global | |
ignorecase = false | |
[alias] | |
addco = "!git add . && git commit -m" |
Say you have the following module:
const SomeModule = () => {
const add: number = (a: number, b: number) => a + b;
const subtract: number = (a: number, b: number) => a - b;
return {
add,
subtract
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done |
/** | |
* A hook in react to return url params | |
*/ | |
export const useUrlParams = () => { | |
const location = useLocation() | |
const [search] = useState<URLSearchParams>( | |
new URLSearchParams(location.search) | |
) |
html, body { | |
width: 100vw; | |
padding: 0; | |
margin: 0; | |
overflow: hidden; | |
min-height: 100%; /* We keep this right? */ | |
min-height: 100vh; | |
min-height: -webkit-fill-available; /* We want the vendor-prefixed value to take affect | |
in browsers that support it, fall back to 100vh, | |
then 100%. */ |
{ | |
"env": { | |
"browser": true, | |
"es2021": true | |
}, | |
"extends": [ | |
"plugin:react/recommended", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:prettier/recommended", | |
"react-app/jest" |
{ | |
"trailingComma": "none", | |
"singleQuote": true, | |
"semi": false, | |
"tabWidth": 2, | |
"useTabs": false, | |
"printWidth": 80 | |
} |
{ | |
"name": "my-project", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"@testing-library/jest-dom": "^5.11.4", | |
"@testing-library/react": "^11.1.0", | |
"@testing-library/user-event": "^12.1.10", | |
"aws-amplify": "^3.3.24", | |
"axios": "^0.21.1", |