Skip to content

Commit

Permalink
Upgrade: several dependencies (#12753)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea authored and kaicataldo committed Jan 9, 2020
1 parent 25eb703 commit e632c31
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
3 changes: 1 addition & 2 deletions lib/cli.js
Expand Up @@ -17,7 +17,6 @@

const fs = require("fs"),
path = require("path"),
mkdirp = require("mkdirp"),
{ CLIEngine } = require("./cli-engine"),
options = require("./options"),
log = require("./shared/logging"),
Expand Down Expand Up @@ -115,7 +114,7 @@ function printResults(engine, results, format, outputFile) {
}

try {
mkdirp.sync(path.dirname(filePath));
fs.mkdirSync(path.dirname(filePath), { recursive: true });
fs.writeFileSync(filePath, output);
} catch (ex) {
log.error("There was a problem writing the output file:\n%s", ex);
Expand Down
11 changes: 5 additions & 6 deletions package.json
Expand Up @@ -48,8 +48,8 @@
"dependencies": {
"@babel/code-frame": "^7.0.0",
"ajv": "^6.10.0",
"chalk": "^2.1.0",
"cross-spawn": "^6.0.5",
"chalk": "^3.0.0",
"cross-spawn": "^7.0.1",
"debug": "^4.0.1",
"doctrine": "^3.0.0",
"eslint-scope": "^5.0.0",
Expand All @@ -72,13 +72,12 @@
"levn": "^0.3.0",
"lodash": "^4.17.14",
"minimatch": "^3.0.4",
"mkdirp": "^0.5.1",
"natural-compare": "^1.4.0",
"optionator": "^0.8.3",
"progress": "^2.0.0",
"regexpp": "^2.0.1",
"semver": "^6.1.2",
"strip-ansi": "^5.2.0",
"regexpp": "^3.0.0",
"semver": "^7.1.1",
"strip-ansi": "^6.0.0",
"strip-json-comments": "^3.0.1",
"table": "^5.2.3",
"text-table": "^0.2.0",
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/cli-engine/formatters/stylish.js
Expand Up @@ -49,18 +49,18 @@ const formatter = proxyquire("../../../../lib/cli-engine/formatters/stylish", {
//------------------------------------------------------------------------------

describe("formatter:stylish", () => {
const colorsEnabled = chalk.enabled;
const originalColorLevel = chalk.level;

beforeEach(() => {
chalk.enabled = false;
chalk.level = 0;
sinon.spy(chalkStub, "reset");
sinon.spy(chalkStub.yellow, "bold");
sinon.spy(chalkStub.red, "bold");
});

afterEach(() => {
sinon.verifyAndRestore();
chalk.enabled = colorsEnabled;
chalk.level = originalColorLevel;
});

describe("when passed no messages", () => {
Expand Down
7 changes: 3 additions & 4 deletions tests/lib/cli-engine/formatters/table.js
Expand Up @@ -17,15 +17,14 @@ const formatter = require("../../../../lib/cli-engine/formatters/table");
//------------------------------------------------------------------------------

describe("formatter:table", () => {
let originalChalkEnabled;
const originalColorLevel = chalk.level;

before(() => {
originalChalkEnabled = chalk.enabled;
chalk.enabled = false;
chalk.level = 0;
});

after(() => {
chalk.enabled = originalChalkEnabled;
chalk.level = originalColorLevel;
});

describe("when passed no messages", () => {
Expand Down

0 comments on commit e632c31

Please sign in to comment.