From 632959e9b78ed831b8b3396339e1a4dd0d281d50 Mon Sep 17 00:00:00 2001 From: Harshith Mente <109957201+joeyyy09@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:15:18 +0530 Subject: [PATCH] Forbid console.log() statements in eslint --- .eslintrc | 5 +++-- src/components/_helpers/transferProps.js | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index afd66fc8..e0a5adf4 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,5 @@ { - "extends" : [ + "extends": [ "@visionappscz/eslint-config-visionapps" ], "env": { @@ -17,6 +17,7 @@ ], "parser": "@babel/eslint-parser", "rules": { - "import/prefer-default-export": "off" + "import/prefer-default-export": "off", + "no-console": "error" } } diff --git a/src/components/_helpers/transferProps.js b/src/components/_helpers/transferProps.js index 07880a76..d9d60729 100644 --- a/src/components/_helpers/transferProps.js +++ b/src/components/_helpers/transferProps.js @@ -24,7 +24,6 @@ export const transferProps = (props) => { } = props; if (process.env.NODE_ENV !== 'production') { - console.log('props', props); const invalidProps = [ 'children', // It is always either handled by the component itself or not supported. 'className', // Classes are set by component authors, changing it arbitrarily might break things.