greenkeeper[bot]
6773279039
Update eslint-config-babel to the latest version 🚀 ( #273 )
...
* chore(package): update eslint-config-babel to version 4.0.0
https://greenkeeper.io/
* Fix prefer-const
* Update package.json
2017-01-10 19:42:43 +01:00
Henry Zhu
9ecf763218
lint [skip ci]
2016-10-14 16:12:05 -04:00
Moti Zilberman
d3af158ba5
Annotate more errors with expected token ( #172 )
...
Expanding on #150 , this allows `unexpected()` to accept the expected token type instead of a message string.
This overload is then used in a couple more places (that independently implement a logic similar to `expect()`'s) to construct an `Unexpected token, expected FOO` message.
2016-10-14 16:10:09 -04:00
Daniel Tschinder
d4d6d05d25
Slightly better error messages ( #150 )
...
* Slightly better errors
Instead of "Unexpected token" we now print
"Unexpected token, expected <type.label>"
2016-10-12 10:38:26 -04:00
Sebastian McKenzie
4af484b805
Merge pull request #65 from danez/fix-syntax-error-pos
...
Fixes SyntaxError position with flow optional type
2016-08-16 15:06:25 +01:00
Daniel Tschinder
eb691425b6
Only allow declares inside declare module ( #73 )
...
* Only allow declares inside declare module
* Better error message
2016-07-29 20:22:49 +02:00
Daniel Tschinder
64ca55cfe0
Fixes Syntax error position with flow optional type
2016-07-28 23:09:40 +02:00
Amjad Masad
aca8010438
Remove remaining @flow annotations
2016-03-03 15:10:59 -08:00
Amjad Masad
b5315d4b27
Revert "Remove Flow annotations and pragmas"
...
This reverts commit 4252244d06b225ab26a02d52c04f9940a3e4d6a2.
2016-03-03 15:03:55 -08:00
Sam Goldman
085361ad1a
Remove Flow annotations and pragmas
2016-02-28 13:18:57 -10:00
Sebastian McKenzie
c3b1b25966
simplify Parser::semicolon method
2015-11-03 11:46:11 +00:00
Sebastian McKenzie
b909a81ab7
6.0.0
...
I'm extremely stupid and didn't commit as I go. To anyone reading this
I'm extremely sorry. A lot of these changes are very broad and I plan on
releasing Babel 6.0.0 today live on stage at Ember Camp London so I'm
afraid I couldn't wait. If you're ever in London I'll buy you a beer
(or assorted beverage!) to make up for it, also I'll kiss your feet and
give you a back massage, maybe.
2015-10-29 17:51:24 +00:00
Sebastian McKenzie
6d6ddf0bcd
type annotate babylon
2015-09-23 15:59:41 +01:00
Sebastian McKenzie
e8fa03ea1c
add parser util addExtra method
2015-09-15 06:19:35 +01:00
Sebastian McKenzie
415752dbb7
add directives property to Program and BlockStatement
2015-09-15 06:16:07 +01:00
Sebastian McKenzie
446b297465
unoverload Literal AST node
2015-09-01 04:49:16 +01:00
Sebastian McKenzie
8887444cf7
fix various bugs surfaced by the esprima test suite, remove some incorrect tests
2015-08-11 16:58:20 +01:00
Sebastian McKenzie
df021c7f23
add esprima tests and fix bugs picked up by it
2015-08-11 00:59:15 +01:00
Sebastian McKenzie
c2c8b2db57
add token match method and remove more dead code
2015-07-26 04:48:42 +01:00
Sebastian McKenzie
2948108c90
finish reorganisation of babylon
2015-07-25 08:03:39 +01:00