Skip to content

Commit

Permalink
refactor(relevant-comments): add debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
azinit committed Dec 8, 2020
1 parent c547bcb commit 10decf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/rules/relevant-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ const meta = {
/** @type {import("./types").RelevantCommentsOptions} */
const __default = defaults(schema[0]);

// DEBUG: let __counter = 0;
const DEBUG = true;
let __counter = 0;

/* eslint-disable max-lines-per-function */

Expand All @@ -96,7 +97,7 @@ const __default = defaults(schema[0]);
* !!! FIXME: temp, decompose!!! refactor!
*/
function create(context) {
// DEBUG: console.log(">>>>>", ++__counter);
if (DEBUG) console.log(">>>>>", ++__counter);

const code = context.getSourceCode();
const file = context.getFilename();
Expand Down

0 comments on commit 10decf5

Please sign in to comment.