Skip to content

Commit c336053

Browse files
committed
Forbid console.log and console.info
Console calls, IMO, should be for debugging only. They're useful for users facing bugs to share information about any unexpected events. Instead of using `console.log` as a catch-all, I'd like to think more carefully about the purpose of each message, and either omit or log it as an error, warning, or debug message.
1 parent 22f1562 commit c336053

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ module.exports = {
5151
}
5252
],
5353
"prefer-arrow-callback": "error",
54+
"no-console": ["error", {"allow": ["error", "warn", "debug"]}],
5455
"no-duplicate-imports": "error",
5556
},
5657
};

0 commit comments

Comments
 (0)