Skip to content

Commit

Permalink
Always use the 'latest' ecmaVersion (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
BPScott authored Dec 21, 2024
1 parent 9c5e826 commit 8606071
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-pianos-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/eslint-plugin': minor
---

Use the "latest" ecmaVersion when parsing
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = [
languageOptions: {
parser: typescriptEslintParser,
parserOptions: {
ecmaVersion: 2021,
ecmaVersion: 'latest',
sourceType: 'module',
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/config/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = [
languageOptions: {
parser: typescriptEslintParser,
parserOptions: {
ecmaVersion: 2021,
ecmaVersion: 'latest',
sourceType: 'module',
},
},
Expand Down

0 comments on commit 8606071

Please sign in to comment.