update prettier docs

This commit is contained in:
AJ ONeal
2020-06-16 23:16:52 +00:00
parent 605b97da97
commit c017e861e7
2 changed files with 41 additions and 1 deletions

37
prettier/install.sh Normal file
View File

@@ -0,0 +1,37 @@
# title: Prettier
# homepage: https://prettier.io/
# tagline: Prettier is an opinionated code formatter.
# description: |
# The core value of Prettier is not in what it gives, but in what it takes away: countless hours of bikeshedding over code style choices. Also, it makes git merges much nicer.
# examples: |
# Prettify all web files in a project, recursively:
#
# ```bash
# prettier --write '**/*{.md,.js,.html,.css}' --ignore ./dist
# ```
#
# Tell Prettier which files to ignore every time
#
# ```bash
# echo "./dist" >> .prettierignore
# ```
#
# Tell Prettier which settings to use - do NOT use `package.json` when it's not necessary!
#
# **`.prettierrc`**:
#
# ```bash
# {
# "trailingComma": "none",
# "tabWidth": 2,
# "singleQuote": true,
# "proseWrap": "always"
# }
# ```
#
if [ -z "$(npm --version 2>/dev/null)" ]; then
webi node
export PATH="$HOME/.local/opt/node/bin:$PATH"
fi
npm install -g prettier@latest