Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Allow console logs in eslint in development
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Sep 26, 2021
1 parent 4f692e6 commit 1f3709e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const isProduction = process.env.NODE_ENV === 'production'

module.exports = {
parser: '@typescript-eslint/parser',
extends: [
Expand Down Expand Up @@ -37,7 +39,7 @@ module.exports = {
'operator-linebreak': 'off',
'no-useless-escape': 'off',
'no-var': 'error',
'no-console': 'error',
'no-console': isProduction ? 'error' : 'warn',
'no-func-assign': 'error',
'no-const-assign': 'error',
'no-class-assign': 'error',
Expand Down

0 comments on commit 1f3709e

Please sign in to comment.