Minimal, reliable Prettier setup for VSCode + npm + CI + Git hooks.
Keep it predictable, avoid noisy configs, and share with your team/community.
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 © CodeCorn™ — 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