Skip to content

Commit 146f2b0

Browse files
committed
fix: remove debug log statement, add eslint console check
* Removes debug log statement from src/utils.js * Adds eslint check to disallow console.log to prevent this from happening again
1 parent 8d7178c commit 146f2b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"rules": {
1414
//Overrides "eslint:recommended"
15-
"no-console": 0, // allow use of console.log
15+
"no-console": ["error", { allow: ["warn", "error"] }], // allow use of console.warn and console.error
1616

1717
//Add the rules associated with --fix not covered by "eslint:recommended" so we highlight them
1818
//during pre-test script
@@ -122,4 +122,4 @@
122122
"template-curly-spacing": "error",
123123
"yield-star-spacing": "error"
124124
}
125-
}
125+
}

bin/utils/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function processOutput(params) {
7979
return writeToFile(params.output, JSON.stringify(params.outputData, null, 4));
8080
}
8181
// Otherwise, no output was specified so just send it to stdout via the console
82-
console.log(params.outputData);
82+
console.log(params.outputData); // eslint-disable-line no-console
8383
}
8484

8585
function constructKeysList(key, keys) {

0 commit comments

Comments
 (0)