Nicolò Ribaudo
61f2aed5b0
Disallow await inside arrow functions ( #9074 )
...
* Disallow await inside arrow functions
* Update test262 whitelist
2018-11-26 12:43:04 +01:00
Nicolò Ribaudo
856edbf95f
[flow] Allow type casts in array patterns inside arrow parameters ( #9069 )
2018-11-24 12:23:49 +01:00
Grigory Moroz
445b14148e
Better error for disallowed trailing commas/parameters after rest elements ( #9046 )
...
* handle disordered rest parameter in function expressions
* remove spaces [lint]
* polish function parameters validation
* add test with arrow function and comma after rest parameter [babel-parser]
2018-11-21 07:49:36 +01:00
Brian Ng
4f206b2416
prettier@1.15.1 ( #9001 )
2018-11-09 15:25:13 -06:00
Daniel Tschinder
5d5cd8612f
Fix several edge cases with context expression state ( #8972 )
...
* Fix several edge cases with context expression state
* Fix review comments
* Remove unused field
2018-11-06 19:37:24 -08:00
Nicolò Ribaudo
2fa1984635
Fix await in function name and parameters ( #7727 )
...
* Disallow await in function parameters
* Fix await as function name
* Update test whitelists
2018-11-06 08:30:06 +01:00
Daniel Tschinder
e3b2c1afff
fix: Do not allow TypeCastExpressions w/o parens ( #8956 )
2018-11-05 15:34:24 -08:00
Nicolò Ribaudo
24c4901ff5
Remove Babylon plugins for features already merged to the ECMAScript spec ( #8448 )
...
These are now enabled by default:
- objectRestSpread (2018)
- asyncGenerators (2018)
- optionalCatchBInding (2019)
- jsonStrings (2019)
TODO (after this commit):
- [ ] Deprecate the `@babel/plugin-syntax-*` packages.
- [ ] Deprecate the `@babel/plugin-proposal-*` packages.
- [ ] Create the `@babel/plugin-transform-*` packages.
2018-11-05 23:48:06 +01:00
Retsam
d2c75c2d38
fix: corrects handling of newline after async with paren-less arrow function ( #8830 )
...
If async is followed by a newline, then a paren-less arrow function should be parsed as two expressions
2018-10-09 23:25:31 +02:00
Bruno Macabeus
850bc1d3dd
class private methods and properties: should not allow spaces between # and identifier ( #8756 )
2018-10-02 19:31:06 -07:00
Nicolò Ribaudo
3c87401714
[decorators] [typescript] Parse type parameters ( #8767 )
...
* [decorators] [typescript] Parse type parameters
* Add test for invalid code
2018-10-01 22:04:19 +02:00
Brian Ng
9b4b436e1f
Fix parsing of newline between 'async' and 'function' ( #8698 )
2018-09-16 22:09:23 -05:00
Yi Li
b439013cd4
Fix trailingComments for FunctionExpression that is CallExpression arguments ( #8488 )
2018-08-21 12:29:11 -05:00
Andy
8ee24fdfc0
TypeScript: Support type arguments on tagged templates ( #7754 )
...
| Q | A
| ------------------------ | ---
| Fixed Issues? | #7747 (partly)
| Patch: Bug Fix? |
| Major: Breaking Change? |
| Minor: New Feature? | Yes
| Tests Added + Pass? | Yes
| Documentation PR |
| Any Dependency Changes? |
| License | MIT
@JamesHenry This changes the AST format. CC @DanielRosenwasser for review.
Supports parsing type arguments on tagged template calls.
Should wait on Microsoft/TypeScript#23430 to be merged so we're sure we have the final syntax.
2018-07-26 10:44:43 -05:00
dnalborczyk
8b10a44fe1
remove .then from dynamic import parser exception message ( #8355 )
2018-07-21 08:26:17 +02:00
Andy
301db1b921
TypeScript: Support type arguments on JSX opening and self-closing tags ( #7799 )
2018-07-10 17:19:42 -05:00
dnalborczyk
db1385fb82
upgrades eslint v5 (major), babel-eslint, eslint-plugin-flowtype, eslint-plugin-prettier ( #8259 )
...
* upgrade eslint v5 (major), babel-eslint (minor), eslint-plugin-flowtype (minor), eslint-plugin-prettier (patch)
* fix makefile: remove (default) .js file extension, remove non-existing glob pattern
* fix linting errors
* add '*.js' glob back to include babel.config.js for linting
2018-07-05 09:17:01 -05:00
晏兵兵
106907e605
fix: import Parser as type ( #8146 ) [skip ci]
2018-06-12 13:42:10 -04:00
Nicolò Ribaudo
6349118bed
Change decoratorsBeforeExport default to false ( #8113 )
2018-06-04 21:12:01 +02:00
Brian Ng
5895277b32
Bump prettier to v1.13.2
2018-06-03 07:54:39 -05:00
Nicolò Ribaudo
b8dcd6f593
Remove parser support for decorators optional parentheses ( #8037 )
...
* Remove parser support for decorators optional parentheses
* Update fixtures
2018-06-02 13:07:15 +02:00
Erik Arvidsson
2a8ebbe7ae
Remove parenthesizedArgument ( #7981 )
...
The extra field parenthesizedArgument was never set to true. It was
always set to false and the code that read this was incorrectly
checking if extra was present.
Fixes #7957
2018-05-29 13:58:21 -07:00
Nicolò Ribaudo
6eab6f5863
[Babylon] Take the first set of options for plugins ( #7994 )
...
* [Babylon] Take the first set of options for plugins
* Fix test
* Docs
2018-05-24 08:54:32 -07:00
Nicolò Ribaudo
ffe04d9195
[babylon] Refactor mixin plugins handling & validation ( #7999 )
2018-05-23 15:28:05 -04:00
Nicolò Ribaudo
b33823e7f8
Better error message for invalid decorators syntax ( #7986 )
2018-05-23 15:26:35 -04:00
Logan Smyth
2058e0686e
Add support for an InterpreterDirective AST node.
2018-05-21 18:19:58 -07:00
Chaitanya Kumar Kamatham
daf0ca8680
Rename "babylon" to "@babel/parser" ( #7937 ) 🎉
2018-05-19 00:03:05 -04:00