no-template-curly-in-string

This commit is contained in:
Alexander T 2019-06-19 16:42:05 +03:00
parent 9a0e2f5b2b
commit fdfff3593e
4 changed files with 8 additions and 7 deletions

View File

@ -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",

View File

@ -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

View File

@ -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;

View File

@ -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",
{