From 556f1f6f76f3a04871b68b2d2ca2c0e35be6a738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Hana=CC=81k?= Date: Mon, 16 Oct 2017 12:36:34 +0200 Subject: [PATCH] console.log warning in optional ruleset --- environments/react/optional.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/environments/react/optional.js b/environments/react/optional.js index 324bdb1..5454a73 100644 --- a/environments/react/optional.js +++ b/environments/react/optional.js @@ -18,6 +18,10 @@ module.exports = { // that should be replaced with less obtrusive, custom UIs. 'no-alert': 'warn', + // Custom logging logic should be implemented, everything else will be considered as debugging + // statement developer forget to remove + 'no-console': 'warn', + // Enforce propTypes declarations alphabetical sorting 'react/sort-prop-types': ['warn', { ignoreCase: true,