diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js
index 5fcffe715b12f..f6f0545f3bb4a 100644
--- a/src/librustdoc/html/static/.eslintrc.js
+++ b/src/librustdoc/html/static/.eslintrc.js
@@ -21,6 +21,10 @@ module.exports = {
"error",
"double"
],
+ "linebreak-style": [
+ "error",
+ "unix"
+ ],
"no-var": ["error"],
"prefer-const": ["error"],
"prefer-arrow-callback": ["error"],