mirror of https://github.com/zulip/zulip.git
eslint: Enable no-restricted-globals with confusing-browser-globals.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
a4042d8a5a
commit
858bcca713
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue