mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Compiler flag to specify line ending #1693 fix whitespace
This commit is contained in:
parent
532f92b88f
commit
16d7e5cad7
@ -69,9 +69,9 @@ module ts {
|
||||
{
|
||||
name: "newLine",
|
||||
type: { "crlf": NewLineKind.CRLF, "lf": NewLineKind.LF },
|
||||
description: Diagnostics.Emit_newline_Colon_CRLF_dos_or_LF_unix,
|
||||
description: Diagnostics.Emit_newline_Colon_CRLF_dos_or_LF_unix,
|
||||
paramType: Diagnostics.NEWLINE,
|
||||
error: Diagnostics.Argument_for_newLine_option_must_be_CRLF_or_LF
|
||||
error: Diagnostics.Argument_for_newLine_option_must_be_CRLF_or_LF
|
||||
},
|
||||
{
|
||||
name: "noEmit",
|
||||
|
||||
@ -1999,17 +1999,17 @@
|
||||
"code": 6059
|
||||
},
|
||||
"Emit newline: 'CRLF' (dos) or 'LF' (unix).": {
|
||||
"category": "Message",
|
||||
"code": 6061
|
||||
},
|
||||
"category": "Message",
|
||||
"code": 6061
|
||||
},
|
||||
"NEWLINE": {
|
||||
"category": "Message",
|
||||
"code": 6062
|
||||
},
|
||||
"category": "Message",
|
||||
"code": 6062
|
||||
},
|
||||
"Argument for --newLine option must be 'CRLF' or 'LF'.": {
|
||||
"category": "Error",
|
||||
"code": 6063
|
||||
},
|
||||
"category": "Error",
|
||||
"code": 6063
|
||||
},
|
||||
|
||||
|
||||
"Variable '{0}' implicitly has an '{1}' type.": {
|
||||
|
||||
@ -91,7 +91,7 @@ module ts {
|
||||
}
|
||||
}
|
||||
|
||||
let newLine = [sys.newLine, "\r\n", "\n"][options.newLine ? Number(options.newLine) : 0];
|
||||
let newLine = [sys.newLine, "\r\n", "\n"][options.newLine ? Number(options.newLine) : 0];
|
||||
|
||||
return {
|
||||
getSourceFile,
|
||||
|
||||
@ -1656,7 +1656,7 @@ module ts {
|
||||
locale?: string;
|
||||
mapRoot?: string;
|
||||
module?: ModuleKind;
|
||||
newLine?: string;
|
||||
newLine?: string;
|
||||
noEmit?: boolean;
|
||||
noEmitHelpers?: boolean;
|
||||
noEmitOnError?: boolean;
|
||||
@ -1692,7 +1692,7 @@ module ts {
|
||||
|
||||
export const enum NewLineKind {
|
||||
DEFAULT = 0,
|
||||
CRLF = 1,
|
||||
CRLF = 1,
|
||||
LF = 2,
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user