2 # homepage: https://prettier.io/
4 # Prettier is an opinionated code formatter.
6 # 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.
8 # Prettify all web files in a project, recursively:
11 # prettier --write '**/*{.md,.js,.html,.css}' --ignore ./dist
14 # Tell Prettier which files to ignore every time
17 # echo "./dist" >> .prettierignore
20 # Tell Prettier which settings to use - do NOT use `package.json` when it's not necessary!
26 # "trailingComma": "none",
28 # "singleQuote": true,
29 # "proseWrap": "always"
34 if [ -z "$(npm --version 2>/dev/null)" ]; then
36 export PATH="$HOME/.local/opt/node/bin:$PATH"
38 npm install -g prettier@latest