mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
no-template-curly-in-string
This commit is contained in:
parent
9a0e2f5b2b
commit
fdfff3593e
@ -102,7 +102,7 @@
|
||||
"no-sequences": "off",
|
||||
"no-shadow": "off",
|
||||
"no-sparse-arrays": "error",
|
||||
"no-template-curly-in-string": "off",
|
||||
"no-template-curly-in-string": "error",
|
||||
"no-throw-literal": "error",
|
||||
"no-trailing-spaces": "error",
|
||||
"no-undef-init": "error",
|
||||
|
||||
@ -54,7 +54,7 @@ namespace ts {
|
||||
printsCorrectly("removeComments", { removeComments: true }, printer => printer.printFile(sourceFile));
|
||||
|
||||
// github #14948
|
||||
// tslint:disable-next-line no-invalid-template-strings
|
||||
// eslint-disable-next-line no-template-curly-in-string
|
||||
printsCorrectly("templateLiteral", {}, printer => printer.printFile(createSourceFile("source.ts", "let greeting = `Hi ${name}, how are you?`;", ScriptTarget.ES2017)));
|
||||
|
||||
// github #18071
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// tslint:disable no-invalid-template-strings (lots of tests use quoted code)
|
||||
// lots of tests use quoted code
|
||||
/* eslint-disable no-template-curly-in-string */
|
||||
|
||||
interface ClassificationEntry {
|
||||
value: any;
|
||||
|
||||
@ -406,7 +406,7 @@ D();
|
||||
},
|
||||
libFile);
|
||||
|
||||
// tslint:disable no-invalid-template-strings
|
||||
/* eslint-disable no-template-curly-in-string */
|
||||
testOrganizeImports("MoveToTop_Invalid",
|
||||
{
|
||||
path: "/test.ts",
|
||||
@ -423,7 +423,7 @@ D();
|
||||
`,
|
||||
},
|
||||
libFile);
|
||||
// tslint:enable no-invalid-template-strings
|
||||
/* eslint-enable no-template-curly-in-string */
|
||||
|
||||
testOrganizeImports("CoalesceMultipleModules",
|
||||
{
|
||||
@ -668,7 +668,7 @@ export * from "lib";
|
||||
},
|
||||
libFile);
|
||||
|
||||
// tslint:disable no-invalid-template-strings
|
||||
/* eslint-disable no-template-curly-in-string */
|
||||
testOrganizeExports("MoveToTop_Invalid",
|
||||
{
|
||||
path: "/test.ts",
|
||||
@ -684,7 +684,7 @@ export { D } from "lib";
|
||||
`,
|
||||
},
|
||||
libFile);
|
||||
// tslint:enable no-invalid-template-strings
|
||||
/* eslint-enable no-template-curly-in-string */
|
||||
|
||||
testOrganizeExports("MoveToTop_WithImportsFirst",
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user