about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-27 22:21:41 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-27 22:21:41 +0200
commitb7d6a429b5abd50fa62e50c72117a8387e43c032 (patch)
tree9670552c4f5bb185d20a0470241e0c61554e52fd
parent1ab98933fa75d72e882b86feac1a0be3a5b02cb0 (diff)
downloadrust-b7d6a429b5abd50fa62e50c72117a8387e43c032.tar.gz
rust-b7d6a429b5abd50fa62e50c72117a8387e43c032.zip
Add "arrow-parens" eslint rule
-rw-r--r--src/librustdoc/html/static/.eslintrc.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js
index 7afd09b34d3..3ad7f4d9e06 100644
--- a/src/librustdoc/html/static/.eslintrc.js
+++ b/src/librustdoc/html/static/.eslintrc.js
@@ -54,5 +54,6 @@ module.exports = {
         "comma-style": ["error", "last"],
         "max-len": ["error", { "code": 100, "tabWidth": 4 }],
         "eol-last": ["error", "always"],
+        "arrow-parens": ["error", "as-needed"],
     }
 };