Skip to content

v1.0.0

Latest

Choose a tag to compare

@meritt meritt released this 20 May 19:05
Immutable release. Only release title and notes can be modified.
v1.0.0
1710f8c

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.