Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 7b6a540

Browse files
authored
Merge pull request #26 from strvcom/optional-warn-console
console.log warning in optional ruleset
2 parents 13c184b + 556f1f6 commit 7b6a540

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

environments/react/optional.js

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ module.exports = {
1818
// that should be replaced with less obtrusive, custom UIs.
1919
'no-alert': 'warn',
2020

21+
// Custom logging logic should be implemented, everything else will be considered as debugging
22+
// statement developer forget to remove
23+
'no-console': 'warn',
24+
2125
// Enforce propTypes declarations alphabetical sorting
2226
'react/sort-prop-types': ['warn', {
2327
ignoreCase: true,

0 commit comments

Comments
 (0)