about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-06-11 13:16:23 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-06-11 13:16:23 +0200
commit64ac29bc1aaea197d08eaaeb9b014ca112ec29c5 (patch)
tree31e4731e04c5cfd046c0ba4a113ec1484d83a6a2 /src/librustdoc/html
parent7092d42c04a56378d2e748f98169b728b1f1d5d1 (diff)
downloadrust-64ac29bc1aaea197d08eaaeb9b014ca112ec29c5.tar.gz
rust-64ac29bc1aaea197d08eaaeb9b014ca112ec29c5.zip
Add eslint rule "no-lonely-if"
Diffstat (limited to 'src/librustdoc/html')
-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 9088e06e508..1cc5f12b330 100644
--- a/src/librustdoc/html/static/.eslintrc.js
+++ b/src/librustdoc/html/static/.eslintrc.js
@@ -84,5 +84,6 @@ module.exports = {
         "no-implicit-globals": "error",
         "no-implied-eval": "error",
         "no-label-var": "error",
+        "no-lonely-if": "error",
     }
 };