From a21e816ef59e0370b564778f0af6530472170160 Mon Sep 17 00:00:00 2001 From: Maxence Leblanc <32215310+mlbnc@users.noreply.github.com> Date: Tue, 14 Jun 2022 09:55:58 +0200 Subject: [PATCH] feat(sonarjs): error rule --- rules/common/sonarjs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/common/sonarjs.js b/rules/common/sonarjs.js index 0a49e21..fb71f57 100644 --- a/rules/common/sonarjs.js +++ b/rules/common/sonarjs.js @@ -23,7 +23,7 @@ module.exports = { 'sonarjs/no-useless-catch': 'warn', 'sonarjs/prefer-immediate-return': 'off', 'sonarjs/prefer-object-literal': 'warn', - 'sonarjs/prefer-single-boolean-return': 'warn', + 'sonarjs/prefer-single-boolean-return': 'error', 'sonarjs/prefer-while': 'warn', }, }