How to validate the format of an Ionic Angular template?

HTML5, XML and such have document type definitions (DTD) that allow for these files to be easily validated. Is there a DTD for the Ionic Framework or Ionic Angular specifically that can be used for continuous testing workflows? Is it even possible to create one?

In particular, it would be very helpful to be able to check our existing template files against specific versions of the Ionic Framework so that we can verify that we are not using backward-incompatible components on older versions (as an error). Additionally, it would be very helpful to be able to automatically identify deprecated components (as a warning) so that we can plan a migration to the newer/recommended components.

I’m familiar with the PHP_CodeSniffer approach to these style checks, so I’m really hoping that this exists somewhere for Ionic.

Thank you!