Skip to content

Commit

Permalink
feat: warn console and debugger in dev (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and manniL committed Jul 27, 2019
1 parent cfe8722 commit 425a8fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -45,8 +45,8 @@ module.exports = {
'generator-star-spacing': 'off',

// Allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',

// Prefer const over let
'prefer-const': ['error', {
Expand Down

0 comments on commit 425a8fa

Please sign in to comment.