Skip to content

Commit eb5ea2c

Browse files
committedFeb 12, 2020
Set the es2020 environment by default
Fixes #415 Fixes #406
1 parent 08af7c1 commit eb5ea2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"debug": "^4.1.0",
5454
"eslint": "^6.8.0",
5555
"eslint-config-prettier": "^6.10.0",
56-
"eslint-config-xo": "^0.28.0",
56+
"eslint-config-xo": "^0.29.0",
5757
"eslint-formatter-pretty": "^3.0.1",
5858
"eslint-plugin-ava": "^10.0.1",
5959
"eslint-plugin-eslint-comments": "^3.1.2",

Diff for: ‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ You can configure some options in XO by putting it in package.json:
144144
### envs
145145

146146
Type: `string[]`\
147-
Default: `['node']`
147+
Default: `['es2020', 'node']`
148148

149149
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.
150150

0 commit comments

Comments
 (0)