Skip to content

Commit

Permalink
Forbid console.log() statements in eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyyy09 committed Apr 10, 2024
1 parent 9014fb5 commit 632959e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends" : [
"extends": [
"@visionappscz/eslint-config-visionapps"
],
"env": {
Expand All @@ -17,6 +17,7 @@
],
"parser": "@babel/eslint-parser",
"rules": {
"import/prefer-default-export": "off"
"import/prefer-default-export": "off",
"no-console": "error"
}
}
1 change: 0 additions & 1 deletion src/components/_helpers/transferProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const transferProps = (props) => {
} = props;

if (process.env.NODE_ENV !== 'production') {
console.log('props', props);
const invalidProps = [
'children', // It is always either handled by the component itself or not supported.
'className', // Classes are set by component authors, changing it arbitrarily might break things.
Expand Down

0 comments on commit 632959e

Please sign in to comment.