Skip to content

Commit

Permalink
config: use "ecmaVersion: latest"
Browse files Browse the repository at this point in the history
In eslint 7.30.0 [1], support for "latest" was added to "ecmaVersion".

[1]: https://eslint.org/blog/2021/07/eslint-v7.30.0-released/
  • Loading branch information
onebytegone committed May 4, 2024
1 parent aa8ecac commit 8fed5fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ module.exports = {
],

'parserOptions': {
// Setting the ecmaVersion to 2019 allows ESLint to parse any file that has valid
// syntax, even if we use things like spread and rest syntax. It would be nice to
// set this to something like 'latest', but you must specify a specific version.
'ecmaVersion': 2019,
'ecmaVersion': 'latest',
},

'env': {
Expand Down

0 comments on commit 8fed5fd

Please sign in to comment.