Skip to content

Commit

Permalink
Upgrade to ECMAScript 2020
Browse files Browse the repository at this point in the history
This is needed in order to use `globalThis`, see #1894.
  • Loading branch information
jaylinski committed Oct 19, 2022
1 parent 5f2b402 commit 1cf26de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -60,6 +59,6 @@ module.exports = {

// ECMAScript 6 //
//--------------//
'no-var': 'error'
}
'no-var': 'error',
},
};
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cf26de

Please sign in to comment.