OpenSlides / openslides-client

Webclient for OpenSlides 4+
MIT License
3 stars 29 forks source link

Add eslint rule for template attribute order #3709

Open bastianjoel opened 1 month ago

bastianjoel commented 1 month ago

In the past we had issues with multiple structural directives in html templates after automatic merging. This could be prevented by requiring a specific order for attributes.

Angular has an eslint rule for that which also support automatic fix: https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/attributes-order.md

As this will introduce a lot of changes this should be done when there are less PRs open.

Elblinator commented 1 week ago

waiting for #3706