Skip to content

Commit

Permalink
Docs: Update ecmaVersion instructions (#7195)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas authored and ilyavolodin committed Sep 21, 2016
1 parent aaa3779 commit 0a36138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user-guide/configuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Please note that supporting JSX syntax is not the same as supporting React. Reac

Parser options are set in your `.eslintrc.*` file by using the `parserOptions` property. The available options are:

* `ecmaVersion` - set to 3, 5 (default), 6, or 7 to specify the version of ECMAScript you want to use.
* `ecmaVersion` - set to 3, 5 (default), 6, 7, or 8 to specify the version of ECMAScript syntax you want to use. You can also set to 2015 (same as 6), 2016 (same as 7), or 2017 (same as 8) to use the year-based naming.
* `sourceType` - set to `"script"` (default) or `"module"` if your code is in ECMAScript modules.
* `ecmaFeatures` - an object indicating which additional language features you'd like to use:
* `globalReturn` - allow `return` statements in the global scope
Expand Down

0 comments on commit 0a36138

Please sign in to comment.