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

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-06-07 15:34:23 -07:00 committed by Tim Abbott
parent a4042d8a5a
commit 858bcca713
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
"use strict"; "use strict";
const confusingBrowserGlobals = require("confusing-browser-globals");
module.exports = { module.exports = {
root: true, root: true,
env: { env: {
@ -89,6 +91,7 @@ module.exports = {
"no-octal-escape": "error", "no-octal-escape": "error",
"no-plusplus": "error", "no-plusplus": "error",
"no-proto": "error", "no-proto": "error",
"no-restricted-globals": ["error", ...confusingBrowserGlobals],
"no-return-assign": "error", "no-return-assign": "error",
"no-script-url": "error", "no-script-url": "error",
"no-self-compare": "error", "no-self-compare": "error",