Skip to content

Commit

Permalink
Chore: remove object-assign from dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Jun 1, 2017
1 parent 734d2e7 commit 8f00ebb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions lib/rules/no-deprecated-api.js
Expand Up @@ -10,7 +10,6 @@
// Requirements
//------------------------------------------------------------------------------

const assign = require("object-assign")
const deprecatedApis = require("../util/deprecated-apis")
const getValueIfString = require("../util/get-value-if-string")

Expand Down Expand Up @@ -446,7 +445,7 @@ function create(context) {
checkVariable(
findVariable(node.local, globalScope),
path,
assign({}, infoMap, {default: infoMap})
Object.assign({}, infoMap, {default: infoMap})
)
break

Expand Down
5 changes: 2 additions & 3 deletions lib/util/check-publish.js
Expand Up @@ -11,7 +11,6 @@
//------------------------------------------------------------------------------

const path = require("path")
const assign = require("object-assign")
const getAllowModules = require("./get-allow-modules")
const getConvertPath = require("./get-convert-path")
const getNpmignore = require("./get-npmignore")
Expand Down Expand Up @@ -45,12 +44,12 @@ module.exports = function checkForPublish(context, filePath, targets) {
return convertPath(retv)
}
const npmignore = getNpmignore(filePath)
const dependencies = assign(
const dependencies = Object.assign(
Object.create(null),
packageInfo.peerDependencies || {},
packageInfo.dependencies || {}
)
const devDependencies = assign(
const devDependencies = Object.assign(
Object.create(null),
packageInfo.devDependencies || {}
)
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Expand Up @@ -29,7 +29,6 @@
"dependencies": {
"ignore": "^3.3.3",
"minimatch": "^3.0.4",
"object-assign": "^4.1.1",
"resolve": "^1.3.3",
"semver": "5.3.0"
},
Expand Down

0 comments on commit 8f00ebb

Please sign in to comment.