diff options
author | cjihrig <cjihrig@gmail.com> | 2018-06-22 23:05:00 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-06-24 12:43:54 -0400 |
commit | 7a3bbbf41be64d04058a158f6986ec5641885f42 (patch) | |
tree | 086e84227091cfc5dfa9eb729f007424cf51feb8 /tools/node_modules/eslint/node_modules/acorn/README.md | |
parent | d5316bc27df87b62675adec517e5dd3108efd1c2 (diff) | |
download | android-node-v8-7a3bbbf41be64d04058a158f6986ec5641885f42.tar.gz android-node-v8-7a3bbbf41be64d04058a158f6986ec5641885f42.tar.bz2 android-node-v8-7a3bbbf41be64d04058a158f6986ec5641885f42.zip |
tools: update ESLint to 5.0.0
This is a new major release of ESLint.
PR-URL: https://github.com/nodejs/node/pull/20855
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'tools/node_modules/eslint/node_modules/acorn/README.md')
-rw-r--r-- | tools/node_modules/eslint/node_modules/acorn/README.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/node_modules/eslint/node_modules/acorn/README.md b/tools/node_modules/eslint/node_modules/acorn/README.md index 276dab3e9c..956cd56e24 100644 --- a/tools/node_modules/eslint/node_modules/acorn/README.md +++ b/tools/node_modules/eslint/node_modules/acorn/README.md @@ -16,7 +16,7 @@ You are welcome to [report bugs](https://github.com/acornjs/acorn/issues) or create pull requests on [github](https://github.com/acornjs/acorn). For questions and discussion, please use the -[Tern discussion forum](https://discuss.acornjs.net). +[Tern discussion forum](https://discuss.ternjs.net). ## Installation @@ -66,7 +66,7 @@ object referring to that same position. [estree]: https://github.com/estree/estree - **ecmaVersion**: Indicates the ECMAScript version to parse. Must be - either 3, 5, 6 (2015), 7 (2016), 8 (2017), or 9 (2018, partial + either 3, 5, 6 (2015), 7 (2016), 8 (2017), 9 (2018) or 10 (2019, partial support). This influences support for strict mode, the set of reserved words, and support for new syntax features. Default is 7. @@ -99,6 +99,8 @@ object referring to that same position. - **allowImportExportEverywhere**: By default, `import` and `export` declarations can only appear at a program's top level. Setting this option to `true` allows them anywhere where a statement is allowed. + +- **allowAwaitOutsideFunction**: By default, `await` expressions can only appear inside `async` functions. Setting this option to `true` allows to have top-level `await` expressions. They are still not allowed in non-`async` functions, though. - **allowHashBang**: When this is enabled (off by default), if the code starts with the characters `#!` (as in a shellscript), the @@ -354,7 +356,7 @@ The `bin/acorn` utility can be used to parse a file from the command line. It accepts as arguments its input file and the following options: -- `--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9`: Sets the ECMAScript version +- `--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9|--ecma10`: Sets the ECMAScript version to parse. Default is version 7. - `--module`: Sets the parsing mode to `"module"`. Is set to `"script"` otherwise. |