Skip to content

Instantly share code, notes, and snippets.

View tw3's full-sized avatar

Ted Weatherly tw3

  • Austin, TX
View GitHub Profile
@tw3
tw3 / tidy-templates.js
Last active January 14, 2020 16:28
A node script that lints / reformats Angular template (html) files to a certain standard
/**
* This node js script scans through the input component template files and tidy's them according to certain guidelines.
*
* Sample shell command:
* node tidy-templates.js src/app projects
*
* To disable lint for a template add this comment to the top of the file:
* <!-- tidy-templates: disable -->
*
* Derived from: