Skip to content

Commit

Permalink
Set the es2020 environment by default
Browse files Browse the repository at this point in the history
Fixes #415
Fixes #406
  • Loading branch information
sindresorhus committed Feb 12, 2020
1 parent 08af7c1 commit eb5ea2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -53,7 +53,7 @@
"debug": "^4.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-config-xo": "^0.28.0",
"eslint-config-xo": "^0.29.0",
"eslint-formatter-pretty": "^3.0.1",
"eslint-plugin-ava": "^10.0.1",
"eslint-plugin-eslint-comments": "^3.1.2",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -144,7 +144,7 @@ You can configure some options in XO by putting it in package.json:
### envs

Type: `string[]`\
Default: `['node']`
Default: `['es2020', 'node']`

Which [environments](https://eslint.org/docs/user-guide/configuring#specifying-environments) your code is designed to run in. Each environment brings with it a certain set of predefined global variables.

Expand Down

0 comments on commit eb5ea2c

Please sign in to comment.