Skip to content

Instantly share code, notes, and snippets.

View inzamam-reachfirst's full-sized avatar

Inzamam Baig inzamam-reachfirst

View GitHub Profile
@karpolan
karpolan / .prettierrc.js
Last active May 2, 2024 19:53
Prettier config for React App
module.exports = {
printWidth: 120, // max 120 chars in line, code is easy to read
useTabs: false, // use spaces instead of tabs
tabWidth: 2, // "visual width" of of the "tab"
trailingComma: 'es5', // add trailing commas in objects, arrays, etc.
semi: true, // add ; when needed
singleQuote: true, // '' for stings instead of ""
bracketSpacing: true, // import { some } ... instead of import {some} ...
arrowParens: 'always', // braces even for single param in arrow functions (a) => { }
jsxSingleQuote: false, // "" for react props, like in html
@chranderson
chranderson / nvmCommands.js
Last active May 11, 2024 09:05
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node