Use the grunt-htmllintpackage on npm to ensure that html is formatted consistently. Attempt to configure the plugin in line with the existing style in html files. You will have to take care to ensure that the django templating in use in tracker does not trigger errors. You'll need to configure some of htmllint's -ignore-regex settings, specifying regular expressions that match django templates.
- Package management with npm
- Regular expressions