From 1cf26de9ecec0e31f1120c4a1b18a5807cda018d Mon Sep 17 00:00:00 2001 From: Jakob Linskeseder Date: Wed, 19 Oct 2022 21:45:41 +0200 Subject: [PATCH] Upgrade to ECMAScript 2020 This is needed in order to use `globalThis`, see #1894. --- .eslintrc.js | 11 +++++------ README.markdown | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 8b847df2..f03eac32 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,17 +1,16 @@ module.exports = { extends: ['eslint:recommended', 'plugin:compat/recommended', 'prettier'], globals: { - self: false + self: false, }, env: { node: true, - es2017: true + es2020: true, }, parserOptions: { - sourceType: 'module' + sourceType: 'module', }, rules: { - // TODO check if redundant rules 'no-console': 'warn', // temporarily disabled until the violating places are fixed. @@ -60,6 +59,6 @@ module.exports = { // ECMAScript 6 // //--------------// - 'no-var': 'error' - } + 'no-var': 'error', + }, }; diff --git a/README.markdown b/README.markdown index 18082111..ac8e01f8 100644 --- a/README.markdown +++ b/README.markdown @@ -79,7 +79,7 @@ There are a few Mustache behaviors that Handlebars does not implement. Supported Environments ---------------------- -Handlebars has been designed to work in any ECMAScript 2017 environment. This includes +Handlebars has been designed to work in any ECMAScript 2020 environment. This includes - Node.js - Deno