ESLint: Allow `Map` and `Set` in ES5 code (#3328)

This commit is contained in:
Michael Schmidt 2022-02-10 12:32:49 +01:00 committed by GitHub
parent d6c5372616
commit f5458431a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -131,7 +131,10 @@ module.exports = {
worker: true
},
globals: {
'Prism': true
'Prism': true,
// Allow Set and Map. They are partially supported by IE11
'Set': true,
'Map': true
},
rules: {
'no-var': 'off'