implemented treat warning as errors commandline option.

Same name as csc.exe uses: [msdn](http://msdn.microsoft.com/en-us/library/406xhdz3.aspx)
Issue #828

Feedback appreciated but feel free to close when you don't want this functionality at this point :)
“type checking” is a very compiler-team specific term.  Really, all we’re trying to say is “Do not emit any outputs if any errors were reported.”

           -- Cyrus

From: Mohamed Hegazy [mailto:notifications@github.com]
Sent: Monday, October 27, 2014 3:38 PM
To: Microsoft/TypeScript
Cc: Cyrus Najmabadi
Subject: Re: [TypeScript] implemented treat warning as errors commandline option. (#966)


In src/compiler/diagnosticInformationMap.generated.ts:

> @@ -364,6 +364,7 @@ module ts {

>          Specifies_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations: { code: 6004, category: DiagnosticCategory.Message, key: "Specifies the location where debugger should locate TypeScript files instead of source locations." },

>          Watch_input_files: { code: 6005, category: DiagnosticCategory.Message, key: "Watch input files." },

>          Redirect_output_structure_to_the_directory: { code: 6006, category: DiagnosticCategory.Message, key: "Redirect output structure to the directory." },

> +        Do_not_emit_JavaScript_on_error: { code: 6007, category: DiagnosticCategory.Message, key: "Do not emit JavaScript on error." },

I would change this to: "Do not emit outputs if any type checking errors were reported"

—
Reply to this email directly or view it on GitHub<https://github.com/Microsoft/TypeScript/pull/966/files#r19442813>.