diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js
index 0d72aadbce14..2ffcbb825911 100644
--- a/src/librustdoc/html/static/.eslintrc.js
+++ b/src/librustdoc/html/static/.eslintrc.js
@@ -80,5 +80,6 @@ module.exports = {
"no-alert": "error",
"no-confusing-arrow": "error",
"no-div-regex": "error",
+ "no-floating-decimal": "error",
}
};