From 69c32c17d7fda3e729839d6993e18121996127db Mon Sep 17 00:00:00 2001 From: Yoki <74389358+iamyoki@users.noreply.github.com> Date: Sat, 27 Nov 2021 00:36:25 +0800 Subject: [PATCH] Update ecmaVersion to 'latest' in esnext.js in eslint-plugin to ensure it's esnext. (#296) Co-authored-by: Ben Scott <227292+BPScott@users.noreply.github.com> --- packages/eslint-plugin/CHANGELOG.md | 2 ++ packages/eslint-plugin/lib/config/esnext.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index 6a7fd8ca..f391dfd4 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -11,6 +11,8 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ### Changed +- Update ecmaVersion to 'latest' in `esnext.js` in eslint-plugin to ensure it's esnext. ([296](https://github.com/Shopify/web-configs/pull/296)) + - Loosen semver restrictions on `eslint` plugins ([297](https://github.com/Shopify/web-configs/pull/297)) ## 40.4.0 - 2021-07-12 diff --git a/packages/eslint-plugin/lib/config/esnext.js b/packages/eslint-plugin/lib/config/esnext.js index 342525be..615d7e4f 100644 --- a/packages/eslint-plugin/lib/config/esnext.js +++ b/packages/eslint-plugin/lib/config/esnext.js @@ -5,11 +5,11 @@ module.exports = { parser: 'babel-eslint', env: { - es6: true, + es2021: true, }, parserOptions: { - ecmaVersion: 2018, + ecmaVersion: '2021', sourceType: 'module', },