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', },