diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 989ba47445a..888ff6e8c6c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -7378,7 +7378,7 @@ namespace ts { function getJsxElementInstanceType(node: JsxOpeningLikeElement) { // There is no such thing as an instance type for a non-class element. This // line shouldn't be hit. - Debug.assert(!!(getNodeLinks(node).jsxFlags & JsxFlags.ClassElement), 'Should not call getJsxElementInstanceType on non-class Element'); + Debug.assert(!!(getNodeLinks(node).jsxFlags & JsxFlags.ClassElement), "Should not call getJsxElementInstanceType on non-class Element"); let classSymbol = getJsxElementTagSymbol(node); if (classSymbol === unknownSymbol) { diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 0a9aa90b7ae..9a984b9a2f1 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -423,7 +423,7 @@ namespace ts { fileNames = map(json["files"], s => combinePaths(basePath, s)); } else { - errors.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, 'files', 'Array')); + errors.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, "files", "Array")); } } else { diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 379177a9b9c..7db8f243192 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -660,9 +660,9 @@ namespace ts { ch >= CharacterCodes._0 && ch <= CharacterCodes._9 || ch === CharacterCodes.$ || ch === CharacterCodes._ || ch > CharacterCodes.maxAsciiCharacter && isUnicodeIdentifierPart(ch, languageVersion); } - + /* @internal */ - // Creates a scanner over a (possibly unspecified) range of a piece of text. + // Creates a scanner over a (possibly unspecified) range of a piece of text. export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, languageVariant = LanguageVariant.Standard, @@ -1121,7 +1121,7 @@ namespace ts { // Special handling for shebang if (ch === CharacterCodes.hash && pos === 0 && isShebangTrivia(text, pos)) { - pos = scanShebangTrivia(text ,pos); + pos = scanShebangTrivia(text, pos); if (skipTrivia) { continue; } diff --git a/src/harness/fourslash.ts b/src/harness/fourslash.ts index 0b3ae07816b..296b489f0c4 100644 --- a/src/harness/fourslash.ts +++ b/src/harness/fourslash.ts @@ -2497,7 +2497,7 @@ module FourSlash { } function containTSConfigJson(files: FourSlashFile[]): boolean { - return ts.forEach(files, f => f.fileOptions['Filename'] === 'tsconfig.json'); + return ts.forEach(files, f => f.fileOptions["Filename"] === "tsconfig.json"); } function getNonFileNameOptionInFileList(files: FourSlashFile[]): string {