Commit Graph
11977 Commits
Author SHA1 Message Date
Mohamed Hegazy 509b2dc18e Add disableJsDiagnostics codefixes to harnes 2017-03-13 23:03:06 -07:00
Mohamed Hegazy fd9fb8f9bc Support static properties 2017-03-13 22:50:21 -07:00
Mohamed Hegazy 6e86596a73 Add debugging utilities 2017-03-13 22:43:37 -07:00
Mohamed Hegazy cc6affad27 Merge remote-tracking branch 'origin/updateCodeFixForAddMissingMember' into checkJSFiles_QuickFixes 2017-03-13 22:41:22 -07:00
Mohamed Hegazy 936a91d271 Add comment 2017-03-09 16:12:58 -08:00
Mohamed Hegazy 706acdf138 Add quick fix to disable error checking in a .js file 2017-03-09 15:59:26 -08:00
Mohamed Hegazy fe7719f0a9 Disable check diagnostics per line 2017-03-08 23:18:39 -08:00
Mohamed Hegazy 3d03f8d8a5 Merge branch 'fixBuildBreak' into checkJSFiles 2017-03-08 23:17:28 -08:00
Mohamed Hegazy 81c0bd50ab Add --lib es6 to @types/node dependent targets 2017-03-08 23:03:30 -08:00
Mohamed Hegazy e9f82145b7 Code review comments 2017-03-08 21:50:23 -08:00
Mohamed HegazyandGitHub 0fb415ac61 Merge pull request #14492 from Microsoft/anyInferences
Set inference result to `any` instead of `{}` for .js files if generic type parameter inference found no candidates
2017-03-08 16:15:50 -08:00
Mohamed Hegazy 41dbae58f3 code review comments 2017-03-08 14:15:26 -08:00
Nathan Shively-SandersandGitHub 1bf4f06b2a Merge pull request #14498 from Microsoft/narrow-default-initialised-parameters
Remove undefined from the type of default  initialised parameters when narrowing
2017-03-07 15:03:57 -08:00
Mohamed Hegazy fb218b7897 Error if --checkJs is used without --allowJs 2017-03-07 14:21:13 -08:00
Mohamed Hegazy 9305d4d99e Change flag name to checkJs 2017-03-07 13:48:37 -08:00
Vladimir MatveevandGitHub fab4ef0bde cache semantic and declaration diagnostics in program (#14516) 2017-03-07 13:26:41 -08:00
AndyandGitHub 6117ed7708 Merge pull request #14391 from Microsoft/lint_better
Update tslint to `latest` (`next` is still on 4.3) and lint for BOM
2017-03-07 11:41:55 -08:00
Mohamed HegazyandGitHub 89974bdaaf Merge pull request #14172 from Microsoft/moduleExportsAlias
Fix #14171: Recognize property assignements to `module.export` aliases as exports
2017-03-07 11:13:19 -08:00
Mohamed HegazyandGitHub 4610dc7e3b Merge pull request #14508 from Busyrev/fix-function-parameter-default-value
FIX: #14507 Function parameter default value wrongly emmited by Printer
2017-03-07 10:34:33 -08:00
Nathan Shively-Sanders 24c8de21c4 Inline isFlowNarrowable 2017-03-07 10:20:02 -08:00
Nathan Shively-Sanders 2325fda8a6 Move isFlowNarrowable call inside getFlowTypeOfReference 2017-03-07 09:28:51 -08:00
Nathan Shively-Sanders 36513f21ab Remove only undefined, not null | undefined, from declared type 2017-03-07 09:14:51 -08:00
Anders Hejlsberg fa02c808d1 Remove null and undefined from contextual 'this' type 2017-03-07 09:07:34 -08:00
Mike Busyrev 1f46dd9949 FIX: #14507 Function parameter default value wrongly emmited by Printer 2017-03-07 19:35:57 +03:00
Mohamed Hegazy b015c1d9b0 Allow @check directives to switch on/off checking in a file 2017-03-06 21:39:32 -08:00
Mohamed Hegazy 3705b87c5c Merge branch 'master' into infereClassPropertiesFromMethods 2017-03-06 16:53:51 -08:00
Mohamed Hegazy 8d9692129f Fix typo 2017-03-06 16:53:39 -08:00
Mohamed HegazyandGitHub b3161e365a Merge pull request #14222 from Microsoft/addAnyStringIndexerToJSObjects
Add a string indexer to any for object literals on a .js file
2017-03-06 16:44:30 -08:00
Nathan Shively-Sanders eaca169b11 Remove optionality from the initial type of default-valued parameters
When narrowing, remove optionality from the initial type of
parameters with initialisers. Note that the type of the initialiser is
not used; its presence just means that the initial type of the parameter
can't contain undefined. It could contain any other member of a declared
union type.
2017-03-06 16:21:54 -08:00
YuiandGitHub 0425175b3a Merge pull request #14493 from Microsoft/master-fixEmitExtraESModuleMark
[Master] Do not emit ESModule marker if file is not external module
2017-03-06 14:09:14 -08:00
Mohamed Hegazy 9f0c5ce141 Add support for //@check directives 2017-03-06 13:50:27 -08:00
Mohamed Hegazy 0b1fff7e66 Add --checkJsFiles 2017-03-06 13:47:27 -08:00
Mohamed Hegazy 8f7fd0918b Set inference result to any isntead of {} for .js files if generic type parameter inference found no candidates 2017-03-06 13:35:03 -08:00
Kanchalai Tanglertsampan ed071a9b02 Only emit ESModule marker when there is no export equal and the file is external module 2017-03-06 13:33:51 -08:00
Anders HejlsbergandGitHub f7242f3983 Merge pull request #14486 from Microsoft/strictChecks
New --strict master option
2017-03-06 11:23:15 -10:00
Anders HejlsbergandGitHub c968eed968 Merge pull request #14472 from Microsoft/typeParameterTypeGuards
Fix type parameter type guards
2017-03-06 11:12:17 -10:00
Anders HejlsbergandGitHub 41226d0d75 Merge pull request #14141 from Microsoft/contextualThisType
Typed 'this' in object literal methods
2017-03-06 11:11:40 -10:00
Anders Hejlsberg d3b7058c29 Change 'tsc --init' to default to 'strict: true' 2017-03-06 13:04:59 -08:00
AndyandGitHub 3295ca3c73 Merge pull request #14385 from Microsoft/path-completions
Move code from 'Completions' to 'PathCompletions' namespace
2017-03-06 09:11:44 -08:00
Andy Hanson d58cfa238b Merge branch 'master' into lint_better 2017-03-06 06:20:48 -08:00
Anders Hejlsberg a4e80b5004 Merge branch 'master' into strictChecks 2017-03-05 16:31:22 -08:00
Anders Hejlsberg 91b658da36 Construct intersection types for type guards involving type parameters 2017-03-05 14:12:55 -08:00
Anders Hejlsberg 65cea207da Use getTypeOfExpression when inferring variable type from initializer 2017-03-03 14:32:18 -08:00
Anders Hejlsberg cda741d14a Introduce --strict compiler option 2017-03-03 10:25:10 -08:00
AndyandGitHub 8bc21f9f68 Merge pull request #13597 from Microsoft/enum_member
Set ScriptElementKind for enum members to "enum member" instead of "const"
2017-03-03 07:35:22 -08:00
Andy Hanson 556e8c3845 Merge branch 'master' into enum_member 2017-03-03 07:04:40 -08:00
Andy Hanson 3bc125463b Add more missing semicolons 2017-03-03 07:00:52 -08:00
Andy Hanson 5f52549047 Merge branch 'master' into semicolon 2017-03-03 06:56:05 -08:00
YuiandGitHub 5abb8f3caa Merge pull request #14371 from Microsoft/master-fix14254
[Master] Fix 14254: Return JsDoc tagName when there is no "@" sign prefix
2017-03-01 21:48:17 -08:00
Yui T da51f39695 FIx minor stuffs 2017-03-01 21:11:34 -08:00