So I am kinda confused as to what the correct comment structure is for our TS files.
are comments supposed to be:
tab/**
tabspace*
tabspace*/
or just tabs?
/**
*
*/
vs
/**
*
*/
So I am kinda confused as to what the correct comment structure is for our TS files.
are comments supposed to be:
tab/**
tabspace*
tabspace*/
or just tabs?
/**
*
*/
vs
/**
*
*/
Just install a TSLint addon for your IDE and it will tell you the correct formatting. I assume you’re using VSCode?
I actually see mine does not complain about how many indentations but from previous experience the *
and */
asterisks should align with the first asterisk of the first line exactly as per your first example.
Indentation, spaces VS tabs VS how many is generally a decision the team working on something decides and those rules just get added to TSLint.
I’ve noticed though the lint lets both go… I might be wrong though.