I use a serie of tools to avoid typos and errors:
Miscellaneous scripts to create folders, files, etc.
The idea is to enforce some kind of structure in new projects, that way is easier to find/search something.
templates and formatters:
With those you can reduce the number of key presses(less mistakes):
- Prettier (code formatter):
A code formatter is a useful way to avoid hours of spaces counting, and alignments
Validators and linters:
- W3C Markup Validation Service
Markup validation is an important step towards ensuring the technical quality of web pages. However, it is not a complete measure of web standards conformance.
Mark-up validators cannot see the “big picture” on a web page, but they excel at picking up missed closing tags and other technicalities.
W3C validate by file:
Cheers and happy coding