Commit f5458431a051c5ad27dfeba4a96fd14567d5a763

Michael Schmidt 2022-02-10T12:32:49

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/.eslintrc.js b/.eslintrc.js
index 6d5edc3..4a96cb8 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -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'