NiklasPor / prettier-plugin-organize-attributes

Organize your HTML attributes automatically with Prettier 🧼
MIT License
205 stars 12 forks source link

Allow configuration of regex for angular components #7

Closed DaSchTour closed 2 years ago

DaSchTour commented 2 years ago

In my project I use additional naming for angular components like xy.view.html or xy.dialog.html It would be great if there was the possibility to add additional suffixes that will be recognized as angular components.

NiklasPor commented 2 years ago

Could you try adjusting the config like this?

{
  "overrides": [
    {
      "files": "*.dialog.html",
      "options": {
        "attributeGroups": [ "$ANGULAR" ]
      }
    },
  ]
}
DaSchTour commented 2 years ago

@NiklasPor that works. Thanks 👍