Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
Reset modifiedRuleIds file on every run
Browse files Browse the repository at this point in the history
  • Loading branch information
AdarshKonchady committed Aug 31, 2019
1 parent e9851f2 commit 5726d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env node

const { CLIEngine } = require("eslint");
const { appendFile, readFile, writeFile } = require("fs");
const { readFile, writeFile } = require("fs");
const yargs = require('yargs');

const { argv } = yargs
Expand Down Expand Up @@ -87,7 +87,7 @@ const writeModifiedRules = ruleIdsArr => {
});
});
const ruleSetText = Array.from(uniqueRuleIds).join("\n");
appendFile("./modifiedRuleIds.txt", ruleSetText, log);
writeFile("./modifiedRuleIds.txt", ruleSetText, log);
};

/**
Expand Down

0 comments on commit 5726d37

Please sign in to comment.