Skip to content

Commit

Permalink
do not allow console.* except our debug override'
Browse files Browse the repository at this point in the history
  • Loading branch information
metal-messiah committed Aug 29, 2024
1 parent b1db9ba commit b298dcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = {
sourceType: 'module'
},
rules: {
'no-console': ['error', { allow: ['debug'] }],
'no-console': ['error'],
'n/no-callback-literal': 'off' // This is not NodeJS code and should not be forced to adhere to NodeJS callback parameter pattern
}
},
Expand Down
2 changes: 2 additions & 0 deletions src/common/util/console.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint no-console: ["error", { allow: ["debug"] }] */

/**
* A helper method to warn to the console with New Relic: decoration
* @param {string} message The primary message to warn
Expand Down

0 comments on commit b298dcb

Please sign in to comment.