From 858bcca7136b65d5fc4e09f312a66e02471f1878 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 7 Jun 2024 15:34:23 -0700 Subject: [PATCH] eslint: Enable no-restricted-globals with confusing-browser-globals. Signed-off-by: Anders Kaseorg --- .eslintrc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 9aba78d2be..f82ef410fb 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",