Skip to content

Commit 1050c8f

Browse files
committed
fix: fixes linting errors that started all the sudden
1 parent d898b9b commit 1050c8f

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

workspaces/arborist/lib/arborist/build-ideal-tree.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,9 @@ This is a one-time fix-up, please be patient...
12901290
async #linkFromSpec (name, spec, parent) {
12911291
const realpath = spec.fetchSpec
12921292
const { installLinks, legacyPeerDeps } = this
1293-
const { content: pkg } = await PackageJson.normalize(realpath).catch(() => { return { content: {} } })
1293+
const { content: pkg } = await PackageJson.normalize(realpath).catch(() => {
1294+
return { content: {} }
1295+
})
12941296
const link = new Link({ name, parent, realpath, pkg, installLinks, legacyPeerDeps })
12951297
this.#linkNodes.add(link)
12961298
return link

workspaces/arborist/lib/arborist/load-virtual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = cls => class VirtualLoader extends cls {
5656
const pkg = await PackageJson.normalize(this.path).then(p => p.content).catch(() => s.data.packages[''] || {})
5757
// TODO clean this up
5858
const {
59-
root = await this[setWorkspaces](this.#loadNode('', pkg, true))
59+
root = await this[setWorkspaces](this.#loadNode('', pkg, true)),
6060
} = options
6161
this.#rootOptionProvided = options.root
6262

workspaces/arborist/lib/arborist/rebuild.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ module.exports = cls => class Builder extends cls {
249249
// add to the set then remove while we're reading the pj, so we
250250
// don't accidentally hit it multiple times.
251251
set.add(node)
252-
const { content: pkg } = await PackageJson.normalize(node.path).catch(() => { return { content: {} } })
252+
const { content: pkg } = await PackageJson.normalize(node.path).catch(() => {
253+
return { content: {} }
254+
})
253255
set.delete(node)
254256

255257
const { scripts = {} } = pkg

workspaces/arborist/lib/arborist/reify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { checkEngine, checkPlatform } = require('npm-install-checks')
1111
const { depth: dfwalk } = require('treeverse')
1212
const { dirname, resolve, relative, join } = require('node:path')
1313
const { log, time } = require('proc-log')
14-
const { lstat, mkdir, rm, symlink, } = require('node:fs/promises')
14+
const { lstat, mkdir, rm, symlink } = require('node:fs/promises')
1515
const { moveFile } = require('@npmcli/fs')
1616
const { subset, intersects } = require('semver')
1717
const { walkUp } = require('walk-up-path')

workspaces/arborist/lib/node.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ const _delistFromMeta = Symbol.for('_delistFromMeta')
6464
const _explain = Symbol('_explain')
6565
const _explanation = Symbol('_explanation')
6666

67-
6867
class Node {
6968
#global
7069
#meta

0 commit comments

Comments
 (0)