From 64ac29bc1aaea197d08eaaeb9b014ca112ec29c5 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 11 Jun 2022 13:16:23 +0200 Subject: [PATCH] Add eslint rule "no-lonely-if" --- src/librustdoc/html/static/.eslintrc.js | 1 + 1 file changed, 1 insertion(+) 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", } };