Skip to content

Commit 60826b7

Browse files
aldarundTheAlexLichter
authored andcommitted
feat: conditional no-console based on env (#2)
1 parent 6019984 commit 60826b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module.exports = {
4040

4141
// Allow debugger during development
4242
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
43+
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
4344

4445
// Prefer const over let
4546
'prefer-const': [2, {
@@ -62,7 +63,6 @@ module.exports = {
6263
'no-var': 2,
6364

6465
// Do not allow console.logs etc...
65-
'no-console': 2,
6666
'space-before-function-paren': [2, {
6767
anonymous: 'always',
6868
named: 'never'

0 commit comments

Comments
 (0)