Skip to content
Permalink
Browse files

feat: conditional no-console based on env (#2)

  • Loading branch information...
aldarund authored and manniL committed Oct 13, 2018
1 parent 6019984 commit 60826b734c80f58c79b581829cf18e15f48d4ac8
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
@@ -40,6 +40,7 @@ module.exports = {

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

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

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

0 comments on commit 60826b7

Please sign in to comment.
You can’t perform that action at this time.