Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Templated strings #332

Closed
SergioMorchon opened this issue Feb 23, 2015 · 2 comments
Closed

Templated strings #332

SergioMorchon opened this issue Feb 23, 2015 · 2 comments

Comments

@SergioMorchon
Copy link

Hi.

When linting this function:

function makeHeader(pkg: Package) {
    return [
        `\t/**`,
        `\t * ${pkg.name} v${pkg.version}`,
        `\t */`
    ].join("\r\n");
}

i got the message jsdoc is not formatted correctly on this line in 2nd (\t * ${pkg.name} v${pkg.version}`,`) and 3th (\t */``) lines that are missinterpreted as comments.

@arnaudpourbaix
Copy link

It is the same issue I reported yesterday: see #331
It is very annoying because I like template strings but linter will report many issues and even VS doesn't properly display template strings content (especially when I use " or ' inside).

@adidahiya
Copy link
Contributor

@leeavital, can you please add a regression test case for this in the jsdoc rule?

leeavital added a commit to leeavital/tslint that referenced this issue Jul 1, 2015
leeavital added a commit to leeavital/tslint that referenced this issue Jul 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants