Skip to content

Instantly share code, notes, and snippets.

View guilhermelimak's full-sized avatar

Guilherme Kammsetzer guilhermelimak

View GitHub Profile
@guilhermelimak
guilhermelimak / install-prettier.sh
Last active July 23, 2021 01:21 — forked from armand1m/install-prettier.sh
Add prettier to a node project in one script
yarn add -D prettier
cat > ./.prettierrc <<EOL
{
"printWidth": 80,
"singleQuote": true,
"trailingComma": "es5"
}
EOL
npx add-project-script -n "format:check" -v "prettier --check './src/**/*.{tsx,ts}'"
npx add-project-script -n "format" -v "prettier --write './src/**/*.{tsx,ts}'"