From eb5ea2c201f438b137fac89c14aa87cf19252228 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 13 Feb 2020 05:31:29 +0700 Subject: [PATCH] Set the `es2020` environment by default Fixes #415 Fixes #406 --- package.json | 2 +- readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a6728f96..0b0c3ebc 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/readme.md b/readme.md index 8f69502f..182867ef 100644 --- a/readme.md +++ b/readme.md @@ -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.