diff --git a/lib/ensure/symlink-paths.js b/lib/ensure/symlink-paths.js index 24e7e1c..33cd760 100644 --- a/lib/ensure/symlink-paths.js +++ b/lib/ensure/symlink-paths.js @@ -34,8 +34,8 @@ function symlinkPaths (srcpath, dstpath, callback) { return callback(err) } return callback(null, { - 'toCwd': srcpath, - 'toDst': srcpath + toCwd: srcpath, + toDst: srcpath }) }) } else { @@ -45,8 +45,8 @@ function symlinkPaths (srcpath, dstpath, callback) { if (err) return callback(err) if (exists) { return callback(null, { - 'toCwd': relativeToDst, - 'toDst': srcpath + toCwd: relativeToDst, + toDst: srcpath }) } else { return fs.lstat(srcpath, (err) => { @@ -55,8 +55,8 @@ function symlinkPaths (srcpath, dstpath, callback) { return callback(err) } return callback(null, { - 'toCwd': srcpath, - 'toDst': path.relative(dstdir, srcpath) + toCwd: srcpath, + toDst: path.relative(dstdir, srcpath) }) }) } @@ -70,8 +70,8 @@ function symlinkPathsSync (srcpath, dstpath) { exists = fs.existsSync(srcpath) if (!exists) throw new Error('absolute srcpath does not exist') return { - 'toCwd': srcpath, - 'toDst': srcpath + toCwd: srcpath, + toDst: srcpath } } else { const dstdir = path.dirname(dstpath) @@ -79,15 +79,15 @@ function symlinkPathsSync (srcpath, dstpath) { exists = fs.existsSync(relativeToDst) if (exists) { return { - 'toCwd': relativeToDst, - 'toDst': srcpath + toCwd: relativeToDst, + toDst: srcpath } } else { exists = fs.existsSync(srcpath) if (!exists) throw new Error('relative srcpath does not exist') return { - 'toCwd': srcpath, - 'toDst': path.relative(dstdir, srcpath) + toCwd: srcpath, + toDst: path.relative(dstdir, srcpath) } } } diff --git a/lib/mkdirs/__tests__/clobber.test.js b/lib/mkdirs/__tests__/clobber.test.js index 58238c4..f359ceb 100644 --- a/lib/mkdirs/__tests__/clobber.test.js +++ b/lib/mkdirs/__tests__/clobber.test.js @@ -19,7 +19,7 @@ describe('mkdirp / clobber', () => { fse.emptyDir(TEST_DIR, err => { assert.ifError(err) - const ps = [ TEST_DIR ] + const ps = [TEST_DIR] for (let i = 0; i < 15; i++) { const dir = Math.floor(Math.random() * Math.pow(16, 4)).toString(16) diff --git a/lib/mkdirs/__tests__/race.test.js b/lib/mkdirs/__tests__/race.test.js index 3d19404..611d10f 100644 --- a/lib/mkdirs/__tests__/race.test.js +++ b/lib/mkdirs/__tests__/race.test.js @@ -21,7 +21,7 @@ describe('mkdirp / race', () => { fse.emptyDir(TEST_DIR, err => { assert.ifError(err) - const ps = [ TEST_DIR ] + const ps = [TEST_DIR] for (let i = 0; i < 15; i++) { const dir = Math.floor(Math.random() * Math.pow(16, 4)).toString(16) diff --git a/package.json b/package.json index 559d88b..37767e7 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "proxyquire": "^2.0.1", "read-dir-files": "^0.1.1", "semver": "^5.3.0", - "standard": "^12.0.1" + "standard": "^13.0.0" }, "main": "./lib/index.js", "files": [