Skip to content

Commit

Permalink
Chore: Remove an indirect dependency on jsonify (#9444)
Browse files Browse the repository at this point in the history
Replace json-stable-stringify with json-stable-stringify-without-jsonify.

This removes an indirect dependency on jsonify which is unlicensed and not needed in supported environments.
  • Loading branch information
realityking authored and ilyavolodin committed Nov 1, 2017
1 parent 4d7d7ab commit 1b606cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/cli-engine.js
Expand Up @@ -24,7 +24,7 @@ const fs = require("fs"),
fileEntryCache = require("file-entry-cache"),
globUtil = require("./util/glob-util"),
validator = require("./config/config-validator"),
stringify = require("json-stable-stringify"),
stringify = require("json-stable-stringify-without-jsonify"),
hash = require("./util/hash"),
ModuleResolver = require("./util/module-resolver"),
naming = require("./util/naming"),
Expand Down
4 changes: 2 additions & 2 deletions lib/config/config-file.js
Expand Up @@ -17,7 +17,7 @@ const fs = require("fs"),
naming = require("../util/naming"),
pathIsInside = require("path-is-inside"),
stripComments = require("strip-json-comments"),
stringify = require("json-stable-stringify"),
stringify = require("json-stable-stringify-without-jsonify"),
requireUncached = require("require-uncached");

const debug = require("debug")("eslint:config-file");
Expand All @@ -29,7 +29,7 @@ const debug = require("debug")("eslint:config-file");
/**
* Determines sort order for object keys for json-stable-stringify
*
* see: https://github.com/substack/json-stable-stringify#cmp
* see: https://github.com/samn/json-stable-stringify#cmp
*
* @param {Object} a The first comparison object ({key: akey, value: avalue})
* @param {Object} b The second comparison object ({key: bkey, value: bvalue})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -55,7 +55,7 @@
"inquirer": "^3.0.6",
"is-resolvable": "^1.0.0",
"js-yaml": "^3.9.1",
"json-stable-stringify": "^1.0.1",
"json-stable-stringify-without-jsonify": "^1.0.1",
"levn": "^0.3.0",
"lodash": "^4.17.4",
"minimatch": "^3.0.2",
Expand Down

0 comments on commit 1b606cd

Please sign in to comment.