Skip to content

Instantly share code, notes, and snippets.

@navix
Last active September 7, 2025 11:25
Show Gist options
  • Save navix/b2559d93b391f211e08af8be13330fe5 to your computer and use it in GitHub Desktop.
Save navix/b2559d93b391f211e08af8be13330fe5 to your computer and use it in GitHub Desktop.
My Prettier setup for Angular apps
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"arrowParens": "avoid",
"singleAttributePerLine": true,
"attributeGroups": [
"$ANGULAR_STRUCTURAL_DIRECTIVE",
"$ANGULAR_INPUT",
"$ANGULAR_TWO_WAY_BINDING",
"$ANGULAR_OUTPUT"
],
"attributeSort": "ACS",
"order": "alphabetical"
}
$ npm i prettier prettier-plugin-css-order prettier-plugin-organize-attributes -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment