Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

eslint: Enable no-restricted-globals with confusing-browser-globals.

Anders Kaseorg858bcca7136b
diff --git a/.eslintrc.js b/.eslintrc.js
index 9aba78d2be3..f82ef410fb6 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,5 +1,7 @@
"use strict";
+const confusingBrowserGlobals = require("confusing-browser-globals");
+
module.exports = {
root: true,
env: {
@@ -89,6 +91,7 @@ module.exports = {
"no-octal-escape": "error",
"no-plusplus": "error",
"no-proto": "error",
+ "no-restricted-globals": ["error", ...confusingBrowserGlobals],
"no-return-assign": "error",
"no-script-url": "error",
"no-self-compare": "error",