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

Fix quotemark avoid-template issues #4408

Merged
merged 4 commits into from
Jan 10, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/rules/quotemarkRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ function walk(ctx: Lint.WalkContext<Options>) {
}
}

if (actualQuoteMark === fixQuoteMark) {
JoshuaKGoldberg marked this conversation as resolved.
Show resolved Hide resolved
return;
}

const start = node.getStart(sourceFile);
let text = sourceFile.text.substring(start + 1, node.end - 1);

Expand Down