Skip to content

Commit fdfff35

Browse files
committed
no-template-curly-in-string
1 parent 9a0e2f5 commit fdfff35

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"no-sequences": "off",
103103
"no-shadow": "off",
104104
"no-sparse-arrays": "error",
105-
"no-template-curly-in-string": "off",
105+
"no-template-curly-in-string": "error",
106106
"no-throw-literal": "error",
107107
"no-trailing-spaces": "error",
108108
"no-undef-init": "error",

src/testRunner/unittests/printer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace ts {
5454
printsCorrectly("removeComments", { removeComments: true }, printer => printer.printFile(sourceFile));
5555

5656
// github #14948
57-
// tslint:disable-next-line no-invalid-template-strings
57+
// eslint-disable-next-line no-template-curly-in-string
5858
printsCorrectly("templateLiteral", {}, printer => printer.printFile(createSourceFile("source.ts", "let greeting = `Hi ${name}, how are you?`;", ScriptTarget.ES2017)));
5959

6060
// github #18071

src/testRunner/unittests/services/colorization.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// tslint:disable no-invalid-template-strings (lots of tests use quoted code)
1+
// lots of tests use quoted code
2+
/* eslint-disable no-template-curly-in-string */
23

34
interface ClassificationEntry {
45
value: any;

src/testRunner/unittests/services/organizeImports.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ D();
406406
},
407407
libFile);
408408

409-
// tslint:disable no-invalid-template-strings
409+
/* eslint-disable no-template-curly-in-string */
410410
testOrganizeImports("MoveToTop_Invalid",
411411
{
412412
path: "/test.ts",
@@ -423,7 +423,7 @@ D();
423423
`,
424424
},
425425
libFile);
426-
// tslint:enable no-invalid-template-strings
426+
/* eslint-enable no-template-curly-in-string */
427427

428428
testOrganizeImports("CoalesceMultipleModules",
429429
{
@@ -668,7 +668,7 @@ export * from "lib";
668668
},
669669
libFile);
670670

671-
// tslint:disable no-invalid-template-strings
671+
/* eslint-disable no-template-curly-in-string */
672672
testOrganizeExports("MoveToTop_Invalid",
673673
{
674674
path: "/test.ts",
@@ -684,7 +684,7 @@ export { D } from "lib";
684684
`,
685685
},
686686
libFile);
687-
// tslint:enable no-invalid-template-strings
687+
/* eslint-enable no-template-curly-in-string */
688688

689689
testOrganizeExports("MoveToTop_WithImportsFirst",
690690
{

0 commit comments

Comments
 (0)