add estree to docs [skip ci] (#372)

This commit is contained in:
Henry Zhu 2017-02-23 18:12:30 -05:00 committed by GitHub
parent 539d345d9b
commit 1e747835db

View File

@ -61,6 +61,8 @@ mind. When in doubt, use `.parse()`.
Babylon generates AST according to [Babel AST format][].
It is based on [ESTree spec][] with the following deviations:
> There is now an `estree` plugin which reverts these deviations
- [Literal][] token is replaced with [StringLiteral][], [NumericLiteral][], [BooleanLiteral][], [NullLiteral][], [RegExpLiteral][]
- [Property][] token is replaced with [ObjectProperty][] and [ObjectMethod][]
- [MethodDefinition][] is replaced with [ClassMethod][]
@ -117,6 +119,7 @@ require("babylon").parse("code", {
### Plugins
- `estree`
- `jsx`
- `flow`
- `doExpressions`