npm i prettier prettier-plugin-organize-attributes -D
Last active
October 9, 2023 00:11
-
-
Save CodeByKwakes/78fb5e6677c0000487e6412949fb4efe to your computer and use it in GitHub Desktop.
Prettier Settings #prettier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"singleQuote": true, | |
"printWidth": 80, | |
"tabWidth": 2, | |
"trailingComma": "none", | |
"bracketSameLine": true, | |
"singleAttributePerLine": true, | |
"overrides": [ | |
{ | |
"files": "*.component.html", | |
"options": { | |
"parser": "angular", | |
"plugins": [ | |
"prettier-plugin-organize-attributes" | |
], | |
"attributeGroups": [ | |
"$ANGULAR_STRUCTURAL_DIRECTIVE", | |
"$ANGULAR_ANIMATION", | |
"$ANGULAR_ANIMATION_INPUT", | |
"$ANGULAR_ELEMENT_REF", | |
"$CODE_GUIDE", | |
"$ANGULAR_INPUT", | |
"$ANGULAR_TWO_WAY_BINDING", | |
"$ANGULAR_OUTPUT" | |
] | |
} | |
}, | |
{ | |
"files": "*.html", | |
"options": { | |
"parser": "html" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment