Output
+
+
+```
+Node {
+ type: 'Program',
+ start: 0,
+ end: 15,
+ body: [
+ Node {
+ type: 'VariableDeclaration',
+ start: 0,
+ end: 15,
+ declarations: [Array],
+ kind: 'let'
+ }
+ ],
+ sourceType: 'script'
+}
+```
+
+
+
+
+### `tokenize()`
+
+`tokenize` returns the tokens of a give code. It takes two paramenter.
+
+- `code` [string]() - the code which needs to be parsed.
+- `options (Optional)` [Object]() - read more about this [here](#options)
+
+Even if `options` is empty or undefined or `options.tokens` is `false`, it assigns it to `true` in order to get the `tokens` array
+
+**Example :**
+
+```js
+const tokens = espree.tokenize('let foo = "bar"', { ecmaVersion: 6 });
+console.log(tokens);
+```
+
+Output
+
+
+```
+Token { type: 'Keyword', value: 'let', start: 0, end: 3 },
+Token { type: 'Identifier', value: 'foo', start: 4, end: 7 },
+Token { type: 'Punctuator', value: '=', start: 8, end: 9 },
+Token { type: 'String', value: '"bar"', start: 10, end: 15 }
+```
+
+
+
+
+### `version`
+
+Returns the current `espree` version
+
+### `VisitorKeys`
+
+Returns all visitor keys for traversing the AST from [eslint-visitor-keys](https://github.com/eslint/eslint-visitor-keys)
+
+### `latestEcmaVersion`
+
+Returns the latest ECMAScript supported by `espree`
+
+### `supportedEcmaVersions`
+
+Returns an array of all supported ECMAScript version
+
+## Options
+```js
+const options = {
// attach range information to each node
range: false,
@@ -62,7 +149,7 @@ const ast = espree.parse(code, {
// enable implied strict mode (if ecmaVersion >= 5)
impliedStrict: false
}
-});
+}
```
## Esprima Compatibility Going Forward
diff --git a/tools/node_modules/eslint/node_modules/espree/package.json b/tools/node_modules/eslint/node_modules/espree/package.json
index d22f11891bdd84..5f7f545e8785a3 100644
--- a/tools/node_modules/eslint/node_modules/espree/package.json
+++ b/tools/node_modules/eslint/node_modules/espree/package.json
@@ -33,7 +33,7 @@
"unicode-6.3.0": "^0.7.5"
},
"engines": {
- "node": ">=6.0.0"
+ "node": "^10.12.0 || >=12.0.0"
},
"files": [
"lib",
@@ -64,7 +64,8 @@
"generate-release": "eslint-generate-release",
"lint": "node Makefile.js lint",
"publish-release": "eslint-publish-release",
+ "sync-docs": "node Makefile.js docs",
"test": "npm run-script lint && node Makefile.js test"
},
- "version": "6.2.1"
+ "version": "7.0.0"
}
\ No newline at end of file
diff --git a/tools/node_modules/eslint/node_modules/esquery/dist/esquery.esm.js b/tools/node_modules/eslint/node_modules/esquery/dist/esquery.esm.js
index aa23d09f79dd9f..88abe0ffb91100 100644
--- a/tools/node_modules/eslint/node_modules/esquery/dist/esquery.esm.js
+++ b/tools/node_modules/eslint/node_modules/esquery/dist/esquery.esm.js
@@ -96,16 +96,16 @@ var estraverse = createCommonjsModule(function (module, exports) {
/*
Copyright (C) 2012-2013 Yusuke Suzuki