Upgrade to ECMAScript 2020

This is needed in order to use `globalThis`, see #1894.
It also made it possible to remove some old polyfills and fallbacks.
This commit is contained in:
Jakob Linskeseder
2022-10-19 22:25:44 +02:00
committed by Jay Linski
parent da41887377
commit f6ff3bf52b
21 changed files with 1200 additions and 1627 deletions
+37
View File
@@ -0,0 +1,37 @@
module.exports = {
globals: {
CompilerContext: true,
Handlebars: true,
handlebarsEnv: true,
shouldCompileTo: true,
shouldCompileToWithPartials: true,
shouldThrow: true,
expectTemplate: true,
compileWithPartials: true,
suite: true,
equal: true,
equals: true,
test: true,
testBoth: true,
raises: true,
deepEqual: true,
start: true,
stop: true,
ok: true,
sinon: true,
strictEqual: true,
define: true,
expect: true,
chai: true
},
env: {
mocha: true
},
rules: {
// Disabling for tests, for now.
'no-path-concat': 'off',
'no-var': 'off',
'dot-notation': 'off'
}
};