summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/esprima/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/esprima/README.md')
-rw-r--r--tools/eslint/node_modules/esprima/README.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/eslint/node_modules/esprima/README.md b/tools/eslint/node_modules/esprima/README.md
index 872ab305f3..8fb25e6c1f 100644
--- a/tools/eslint/node_modules/esprima/README.md
+++ b/tools/eslint/node_modules/esprima/README.md
@@ -12,11 +12,11 @@ with the help of [many contributors](https://github.com/jquery/esprima/contribut
### Features
-- Full support for ECMAScript 2016 ([ECMA-262 7th Edition](http://www.ecma-international.org/publications/standards/Ecma-262.htm))
+- Full support for ECMAScript 2017 ([ECMA-262 8th Edition](http://www.ecma-international.org/publications/standards/Ecma-262.htm))
- Sensible [syntax tree format](https://github.com/estree/estree/blob/master/es5.md) as standardized by [ESTree project](https://github.com/estree/estree)
- Experimental support for [JSX](https://facebook.github.io/jsx/), a syntax extension for [React](https://facebook.github.io/react/)
- Optional tracking of syntax node location (index-based and line-column)
-- [Heavily tested](http://esprima.org/test/ci.html) (~1300 [unit tests](https://github.com/jquery/esprima/tree/master/test/fixtures) with [full code coverage](https://codecov.io/github/jquery/esprima))
+- [Heavily tested](http://esprima.org/test/ci.html) (~1500 [unit tests](https://github.com/jquery/esprima/tree/master/test/fixtures) with [full code coverage](https://codecov.io/github/jquery/esprima))
### API
@@ -33,8 +33,8 @@ A simple example on Node.js REPL:
{ type: 'Identifier', value: 'answer' },
{ type: 'Punctuator', value: '=' },
{ type: 'Numeric', value: '42' } ]
-
-> esprima.parse(program);
+
+> esprima.parseScript(program);
{ type: 'Program',
body:
[ { type: 'VariableDeclaration',
@@ -42,3 +42,5 @@ A simple example on Node.js REPL:
kind: 'const' } ],
sourceType: 'script' }
```
+
+For more information, please read the [complete documentation](http://esprima.org/doc). \ No newline at end of file