about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-08 14:07:25 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-08 14:07:25 +0200
commitb7e51163755f2f57de5c906f361b0686f6bfb1a5 (patch)
treeb2286990155d02cec66ed863ad6026c3c1df5b3e
parent4c09a3345ab10b9a10a284cea1a1f3673bc9a414 (diff)
downloadrust-b7e51163755f2f57de5c906f361b0686f6bfb1a5.tar.gz
rust-b7e51163755f2f57de5c906f361b0686f6bfb1a5.zip
Enforce linebreak style in js source code
-rw-r--r--src/librustdoc/html/static/.eslintrc.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js
index 5fcffe715b1..f6f0545f3bb 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"],