Initial release of the Prettier preset implementing the HTML Academy Codeguide.
What's inside
Formatting rules for JavaScript, TypeScript, JSX, CSS, SCSS, HTML, Markdown, JSON and YAML — aligned with eslint-config-htmlacademy and stylelint-config-htmlacademy.
Notable choices: 2-space indent, single quotes in JS/TS, double quotes in JSX and CSS, no spaces inside object braces, trailing comma everywhere multiline, printWidth: 100, LF line endings.
Quick start
npm install -D prettier prettier-config-htmlacademy{
"prettier": "prettier-config-htmlacademy"
}Requirements
- Node.js >= 24
- Prettier >= 3
See the README for usage with ESLint and Stylelint, editor integration and the full configuration table.