diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js
index 2ffcbb82591..d6e96bd71e4 100644
--- a/src/librustdoc/html/static/.eslintrc.js
+++ b/src/librustdoc/html/static/.eslintrc.js
@@ -81,5 +81,6 @@ module.exports = {
"no-confusing-arrow": "error",
"no-div-regex": "error",
"no-floating-decimal": "error",
+ "no-implicit-globals": "error",
}
};