Sam Goldman
af7ab71486
Allow flow internal slot properties to be optional ( #7959 )
...
See 23d1b1c5f2
2018-05-17 19:01:03 +02:00
Sam Goldman
b396cdcbe5
Internal slot properties ( #7947 )
...
* Support internalSlots to babel-types and babel-generator
* Parsing support for internal slot properties
* Print internal slots in babel-generator
* Add whitespace before first internal slot property
2018-05-16 22:48:12 -05:00
Brian Ng
21b03c35d3
Fix lint and yarn.lock
2018-05-10 09:22:45 -05:00
Daniel Taveras
70e3454d7a
Fix a typo in a babylon flow plugin comment [skip ci] ( #7898 )
2018-05-09 20:29:22 -04:00
Michael Mantel
84e76e2d49
TypeScript: Allow non-null and type assertions as lvalues. ( Fixes #7638 ) ( #7888 )
2018-05-09 16:45:50 -05:00
Brian Ng
d608535719
Allow parsing of decorators with TypeScript abstract classes ( #7850 )
...
* Allow parsing of decorators with TypeScript abstract classes
* avoid lookahead
2018-05-02 13:49:46 -05:00
Brian Ng
0353ce9ed5
Disallow flow type parameter defaults in some cases
2018-05-02 08:56:54 -05:00
Brian Ng
65ca968f8b
Allow static? as identifier in ObjectTypeProperty
2018-05-02 08:56:54 -05:00
Brian Ng
3299086955
Add support for flow implements ( #7741 )
2018-04-18 08:54:30 -05:00
Andy
19708e0154
TypeScript: support mapped type modifiers syntax ( #7383 )
2018-03-23 14:34:15 -04:00
Daniel Tschinder
f0d681a238
Remove obsolete max-len eslint rule and reformat some stuff to fit ( #7602 )
2018-03-20 08:51:47 -05:00
Logan Smyth
7901e7d1b9
Fix flowtype errors introduced in #7503 . ( #7531 )
2018-03-08 16:02:28 -08:00
Daniel Tschinder
5d615dd198
Disallow setters to have RestElement ( #7498 )
2018-03-05 18:03:59 -06:00
Brian Ng
8823e4247e
Fix up flow errors ( #7227 )
...
* charcodes@0.1.0
* Add hasFlowComment to tokenizer/state
* Fix babel-types flow errors
* Add isIterator to tokenizer/state
* Remove unnecessary argument from flow/readToken
* Add annotation to tokenizer/isIterator
* Fix reference to generated index.js.flow
* Add workaround in babel-template expression formatter
* Fix tsEatThenParseType return type
* Fix inconsistency with ParseSubscript state
* Add workaround for flow handling error with tagged template in optional chain
* Add flow workaround in expectPlugin inside tokenizer
2018-02-25 18:12:33 -08:00
Andy
6f3be3a543
typescript: Support definite assignment assertion ( #7159 )
2018-02-24 16:26:07 -06:00
Andy
6f6c8dabba
TypeScript: Support conditional types syntax ( #7404 )
...
Microsoft/TypeScript#21316 and Microsoft/TypeScript#21496
2018-02-24 14:56:14 +01:00
Andy
dccfed3601
TypeScript: Support parsing 'unique' type operator ( #7239 )
2018-01-22 16:09:22 -05:00
Andy
667f5815c1
typescript: Properly set this.state.inType one token before parsing a type ( #7225 )
...
* typescript: Properly set this.state.inType one token before parsing a type
* Reuse tsParseTypeArguments and inline tsExpectLessThanThenParseInType
2018-01-17 08:36:04 -05:00
Raja Sekar
2d05487293
Add support for @@iterator ( #7058 )
2018-01-12 09:19:11 -06:00
Maaz Syed Adeeb
74682f33bc
Support 'assert and assign' TypeScript syntax ( #7098 )
2018-01-08 15:29:27 -06:00
Sophie Alpert
8250ff963e
Suggest JSX fragment syntax in adjacent tag error ( #7152 )
2018-01-04 09:21:39 +01:00
Raja Sekar
f3410e761c
Flow comment parsing ( #7007 )
2017-12-30 23:53:08 +01:00
Andy
6a73f39199
Support parsing export default abstract class {} ( #7075 )
2017-12-21 16:13:31 +01:00
Brian Ng
2b065350b5
Treat import type * as a parser error ( #7061 )
2017-12-19 10:54:20 -05:00
Brian Ng
f5ef928586
Add method property to ObjectTypeProperty ( #7005 )
2017-12-11 09:32:16 -06:00
Brian Ng
c7980b2b90
Bump prettier ( #6991 )
2017-12-07 17:36:49 -05:00
Andy
aa38c47160
For babylon typescript parser, fix false positive for ! after a line break ( #6969 )
...
Closes #6798
2017-12-04 19:57:22 +01:00
Daniel Tschinder
de5ab72c49
Update flow to 0.59 and fix some flow issues ( #6957 )
2017-12-02 08:59:46 -05:00
Brian Ng
d8bbaaae0a
Split exportExtensions into exportDefault and exportNamespace plugins… ( #6920 )
...
* Split exportExtensions into two plugins in babylon
* rename proposal-export-default to proposal-export-default-from
* rename proposal-export-namespace to proposal-export-namespace-from
2017-11-30 17:46:36 -05:00
Martin McKeaveney
6d820a2757
removing expression field from ArrowFunctionExpression ( #6836 )
2017-11-23 22:12:13 +01:00
Gidi Meir Morris
edbf5d33dc
Fix "Better error messaging for unexpected tokens #6715 " ( #6875 )
2017-11-22 15:31:03 -06:00
Sven SAULEAU
bb89364813
Merge pull request #6727 from babel/feat-use-charcode-constants
...
[Babylon] Use char codes contants
2017-11-16 10:35:42 +01:00
Brian Ng
0f2ab2fe20
Fix some reserved type handling and declare class with multiple extends ( #6725 )
2017-11-15 16:16:15 -06:00
Nicolò Ribaudo
9ae23639ad
Parse async arrows with flow type parameters ( #6802 )
...
Fixes #6712
2017-11-14 16:24:14 +01:00
Sven SAULEAU
186f04a3e9
feat: use charcodes in JSX plugin
2017-11-13 13:15:32 +01:00
Daniel Tschinder
cc66495a95
Unify eslint/prettier config ( #6747 )
...
* Unify eslint/prettier config
Use a prettier config file and correctly configure trailing commas
Enable curly in babylon as in all other packages.
* Add experimental and codemods
2017-11-06 14:19:59 +01:00
Daniel Tschinder
3b540e3f5a
Integrate babylon into babel workflow
2017-11-01 23:26:51 +01:00
Daniel Tschinder
2d378d076e
Move babylon into monorepo
2017-11-01 16:16:48 +01:00