This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
indent rule applied inside of multi-line template
strings
#1611
Labels
template
strings
#1611
Bug Report
3.15.1
2.0.3
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
TSLint logs an
(indent) db/test.ts[1, 1]: tab indentation expected
error.Expected behavior
No error should be logged.
Workaround:
Notes:
Indentation should be ignored inside the literal portion of a template string (
InTemplateHeadOrNoSubstitutionTemplate
andInTemplateMiddleOrTail
).However, I think it makes sense to check for indentation within template substitution. So the following should be considered an indentation error:
The text was updated successfully, but these errors were encountered: