From 87f47d80014754b71bdac42e7fa60cc1b10cd8b0 Mon Sep 17 00:00:00 2001 From: sancodes Date: Mon, 21 Mar 2022 20:49:47 -0700 Subject: [PATCH] add no-void lint --- .eslintrc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index f5c83f13dc..ec9bb4b5aa 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -58,7 +58,8 @@ module.exports = { 'no-var': ['error'], 'space-before-blocks': ['error'], 'space-infix-ops': 'error', - 'yoda': 'error' + 'yoda': 'error', + 'no-void': ['error', { "allowAsStatement": true }] }, settings: { react: {