Skip to content

Commit

Permalink
clarify the esnext option
Browse files Browse the repository at this point in the history
fixes #110
  • Loading branch information
sindresorhus committed Apr 30, 2016
1 parent e3eaf88 commit 60fe4d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var cli = meow({
' --fix Automagically fix issues',
' --reporter Reporter to use',
' --stdin Validate code from stdin',
' --esnext Enable ES2015+ rules',
' --esnext Enforce ES2015+ rules',
' --env Environment preset [Can be set multiple times]',
' --global Global variable [Can be set multiple times]',
' --ignore Additional paths to ignore [Can be set multiple times]',
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $ xo --help
--fix Automagically fix issues
--reporter Reporter to use
--stdin Validate code from stdin
--esnext Enable ES2015+ rules
--esnext Enforce ES2015+ rules
--env Environment preset [Can be set multiple times]
--global Global variable [Can be set multiple times]
--ignore Additional paths to ignore [Can be set multiple times]
Expand Down Expand Up @@ -137,7 +137,7 @@ You can configure some options in XO by putting it in package.json:
Type: `boolean`<br>
Default: `false`

Enable ES2015+ rules.
Enforce ES2015+ rules. Enabling this will *prefer* ES2015+ syntax and conventions.

*ES2015+ is parsed even without this option. You can already use ES2016 features like [`async`/`await`](https://github.com/lukehoban/ecmascript-asyncawait) and [decorators](https://github.com/wycats/javascript-decorators). For a full list of features see [Babel's experimental features](https://babeljs.io/docs/usage/experimental/) and their [Learn ES2015](https://babeljs.io/docs/learn-es2015/).*

Expand Down

0 comments on commit 60fe4d6

Please sign in to comment.