about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-05-08 21:31:20 +0200
committerGitHub <noreply@github.com>2022-05-08 21:31:20 +0200
commit43b3a491f51caa2fe3ddb27c85e2e00c296cf177 (patch)
treeda93b59c57d01abaee6895c1a756b89dc37bad25 /src
parent4c162a1cc6c786c6cbd08bf728361de639fca881 (diff)
parent1e93165b052814f87b0bbdb84c6db769297d8621 (diff)
downloadrust-43b3a491f51caa2fe3ddb27c85e2e00c296cf177.tar.gz
rust-43b3a491f51caa2fe3ddb27c85e2e00c296cf177.zip
Rollup merge of #96835 - GuillaumeGomez:eslint-rules, r=notriddle
Add more eslint rules

Slowly continuing to enforce more rules with eslint.

Part of https://github.com/rust-lang/rust/issues/93058.

r? `@notriddle`
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/.eslintrc.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js
index 5fcffe715b1..52577b228aa 100644
--- a/src/librustdoc/html/static/.eslintrc.js
+++ b/src/librustdoc/html/static/.eslintrc.js
@@ -21,6 +21,11 @@ module.exports = {
             "error",
             "double"
         ],
+        "linebreak-style": [
+            "error",
+            "unix"
+        ],
+        "no-trailing-spaces": "error",
         "no-var": ["error"],
         "prefer-const": ["error"],
         "prefer-arrow-callback": ["error"],