31358 Commits

Author SHA1 Message Date
okmttdhr
7db5f68144
Add index signature for anonymous object literal type (#37903)
* Use ts.map for stylistic consistency

* Show error only if noImplicitAny is set

* Accept baseline for noImplicitAnyIndexing

* Fix lint error

* Add test cases for indexedAccessWithFreshObjectLiteral
2020-11-02 14:35:56 -08:00
Oleksandr T
f646ec87fc
fix(40901): skip checking custom arguments name in a constructor (#40912) 2020-11-02 14:35:07 -08:00
Daniel Rosenwasser
373b352333
Rename 'compat' to 'deprecatedCompat'. (#41000) 2020-11-02 14:25:12 -08:00
Oleksandr T
075477f9cf
fix(35779): emit comments after trailing comma (#37887) 2020-11-02 14:24:55 -08:00
Nathan Shively-Sanders
ae81add083
Separate delete-all-imports from other delete-all (#41105)
This fixes the first part of #32196
2020-11-02 14:18:50 -08:00
Ben Lichtman
53bc006752
Merge pull request #41226 from a-tarasyuk/feat/eslint
feat(eslint): upgrade typescript-eslint/eslint
2020-11-02 09:05:03 -08:00
Oleksandr T
2437ce5793 feat(eslint): upgrade typescript-eslint/eslint 2020-11-02 12:37:10 +02:00
TypeScript Bot
4a7b6dc749 Update package-lock.json 2020-11-02 06:17:07 +00:00
Wesley Wigham
816af71d58
Fix incremental emit issue where dependency relations implied by synthesized imports would not be detected (#41346)
* Fix incremental emit issue where dependency relations implies by synthesized imports would not be detected

* Update src/compiler/program.ts

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2020-11-01 16:05:49 -08:00
TypeScript Bot
6bef0cb0c4 Update package-lock.json 2020-11-01 06:16:09 +00:00
TypeScript Bot
71a2c59c55 Update package-lock.json 2020-10-31 06:15:18 +00:00
Wesley Wigham
479105090d
Merge pull request #41330 from weswigham/jsx-import-source-as-auto-import
Auto-include types for the jsx import source in the new jsx transforms
2020-10-30 16:51:04 -07:00
Wesley Wigham
1e1ae3034b
Update src/compiler/program.ts
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2020-10-30 16:21:36 -07:00
Wesley Wigham
fe94a2180c
Use same metho as importHelpers to add synthetic import 2020-10-30 16:16:23 -07:00
Wesley Wigham
8493ee8824
Add mroe incremental-affecting affixes to compiler options, add incremental test for changing jsxImportSource 2020-10-30 16:01:27 -07:00
Wesley Wigham
fe3b3436e6
Add affectsModuleResolution: true ot jsx and jsxImportSource options 2020-10-30 15:38:20 -07:00
Wesley Wigham
e044b56d7f
Merge pull request #40985 from weswigham/static-decl-ref
Adjust typeof import name lookup to better match type query lookup
2020-10-30 11:13:23 -07:00
Ron Buckton
b9ed93ee6c
Merge pull request #41331 from microsoft/fix39149
Fix double alias of complex export/import/default/namespace combination
2020-10-30 09:25:58 -07:00
csigs
966d978513
LEGO: Merge pull request 41335
LEGO: Merge pull request 41335
2020-10-30 05:11:10 -07:00
csigs
3cbce3acf3 LEGO: check in for master to temporary branch. 2020-10-30 12:10:39 +00:00
TypeScript Bot
80dc9d9e3c Update package-lock.json 2020-10-30 06:16:14 +00:00
Ron Buckton
f944afd053 Fix double alias of complex export/import/default/namespace combination 2020-10-29 18:42:36 -07:00
Ron Buckton
bcbe1d7638
Merge pull request #41094 from microsoft/destructuringEvaluationOrder
Fix destructuring evaluation order for initializers
2020-10-29 17:12:18 -07:00
Oleksandr T
eb6ddf6b29
fix(40671): suggest ConvertStringToTemplateLiteral refactoring for string with property/element acceses elements (#40942) 2020-10-29 15:23:11 -07:00
Wesley Wigham
6714998e01
Auto-include types for the jsx import source in the new jsx transforms 2020-10-29 14:17:24 -07:00
Ron Buckton
2b7e790732 Update control flow for nested binary exprs 2020-10-29 13:32:32 -07:00
Jesse Trinity
b27d4bf3f6
noop in setTypeAcquisiton for undefined (#41291)
* noop in setTypeAcquisiton for undefined

* accept new baseline

* add regression test
2020-10-29 13:30:42 -07:00
Wesley Wigham
60b8bbcabe
Update style 2020-10-29 13:03:25 -07:00
Sheetal Nandi
6bde4b5c02
Fix missing file name of extended source file in synchronizeProjectList when it is missing on disk (#41222)
Fixes #40136
2020-10-29 12:18:43 -07:00
Andrew Branch
6428140204
Log AutoImportProvider creation time (#41315) 2020-10-29 09:00:50 -07:00
TypeScript Bot
f3ce688a94 Update package-lock.json 2020-10-29 06:27:18 +00:00
Wesley Wigham
f0f3862cd9
Merge pull request #41314 from weswigham/fix-global-jsx-ns-alias-crashes
Fix crashes when the global JSX namespace is an alias
2020-10-28 18:38:26 -07:00
Ron Buckton
8a15291541 Update control flow for correct destructuring evaluation order 2020-10-28 16:50:15 -07:00
Wesley Wigham
3de6ed08a9
Merge pull request #41312 from weswigham/maybe-bind-comma-lhs
Bind comma expression LHS call expressions
2020-10-28 15:12:03 -07:00
Wesley Wigham
d722392d81
Fix crashes when the global JSX namespace is an alias 2020-10-28 14:31:40 -07:00
Wesley Wigham
4ec02a56b8
Bind comma expression LHS call expressions 2020-10-28 13:48:29 -07:00
Wesley Wigham
ca8a15d37b
Merge pull request #41287 from weswigham/bind-exports-assigned-object-as-alias
Bind `module.export = {Thing}` with alias symbols
2020-10-28 13:14:20 -07:00
Anders Hejlsberg
bd27bd8d47
Don't relate unmatched parameter positions in signatures (#41308)
* Don't relate unmatched parameter positions in signatures

* Add regression test

* Accept new baselines
2020-10-28 11:55:32 -07:00
Oleksandr T
3eed4a61d1
fix(41208): add insertSpaceAfterOpeningAndBeforeClosingEmptyBraces to tsserver protocol (#41304) 2020-10-28 11:51:18 -07:00
Sheetal Nandi
e17d95dada
When creating synthetic default symbol set parent as module symbol (#41282)
Fixes #40684
2020-10-28 11:24:40 -07:00
TypeScript Bot
4d85f03afa Update package-lock.json 2020-10-28 06:26:41 +00:00
Wesley Wigham
6acce0ca6f
Merge pull request #41075 from uhyo/fix-36958
allow type narrowing with NonNullExpression
2020-10-27 20:10:27 -07:00
Oleksandr T
af38ab90e2
feat(41249): allow import.meta with module: es2020 (#41274) 2020-10-27 17:26:15 -07:00
csigs
40559531e7
LEGO: Merge pull request 41290
LEGO: Merge pull request 41290
2020-10-27 17:11:09 -07:00
csigs
56fd559174 LEGO: check in for master to temporary branch. 2020-10-28 00:10:41 +00:00
Wesley Wigham
e96ce39b60
Fixup other fourslash test 2020-10-27 16:25:30 -07:00
Anders Hejlsberg
40b81224f9
Remove string literals from unions with matching template literals (#41276)
* Remove string literals from unions with matching template literals

* Add tests

* Accept new baselines
2020-10-27 16:21:07 -07:00
Wesley Wigham
d1bc6b1ba6
Bind module.export = {Thing} with alias symbols 2020-10-27 15:43:00 -07:00
Michael
71cd5d522d
Fix two issues with ConvertToTypeOnlyExport codefix (#40490)
* Modify test case to reproduce error

* Fix TypeOnlyExport codefix to work with 3 or more type exports in the same declaration

The check to ensure that a fixed export declaration wasn't fixed again
was reversed. This only surfaced when 3 or more type exports existed in
the same declaration.

* Add failing test cases for comments being duplicated

* Fix convertToTypeOnlyExport codefix from duplicating leading comments

* Simplify convertToTypeOnlyExport when change is just inserting `type` keyword

Co-authored-by: Andrew Branch <andrew@wheream.io>
2020-10-27 15:08:20 -07:00
Oleksandr T
9ed608b439
fix(41244): ignore synthesized imports (#41267) 2020-10-27 13:22:02 -07:00