Minimal, reliable Prettier setup for VSCode + npm + CI + Git hooks.
Keep it predictable, avoid noisy configs, and share with your team/community.
CODECORN - PRETTIER GUIDE GitHub Stars Issues License Prettier VSCode
If this guide helps you, please leave a โญ star and/or open a PR!
Se ti รจ utile, lascia una โญ e/o proponi una PR!
npm i -D prettier npm set-script format "prettier --write ." npm set-script "format:check" "prettier --check ."
Create .prettierrc.json:
{
"$schema": "https://json.schemastore.org/prettierrc",
"tabWidth": 2,
"useTabs": false,
"printWidth": 100,
"singleQuote": false,
"trailingComma": "es5",
"semi": true,
"endOfLine": "lf"
}VSCode (workspace): .vscode/settings.json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"prettier.requireConfig": true,
"files.eol": "\n"
}๐ ๐ฎ๐น IT โ ๐ฌ๐ง EN Want to add more languages? Contributions are welcome!
MIT ยฉ CodeCornTM โ Distributed under the MIT license.
If this guide helped you, leave a star โญ on GitHub and help us grow the CodeCorn community!
๐จโ๐ป Federico Girolami
Full Stack Developer | System Integrator | Digital Solution Architect ๐
๐ซ Get in Touch
๐ Website: codecorn.it *(Under Construction)*
๐ง Email: f.girolami@codecorn.it
๐ GitHub: github.com/fgirolami29