From 8fed5fd2c54eb8c093633e439510c113bc2bc4b5 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Sat, 4 May 2024 06:42:30 -0400 Subject: [PATCH] config: use "ecmaVersion: latest" 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/ --- index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.js b/index.js index f8b966b..e879f1e 100644 --- a/index.js +++ b/index.js @@ -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': {