+7
-103
lines changedFilter options
+7
-103
lines changed Original file line number Diff line number Diff line change
@@ -124,7 +124,6 @@ class BaseCommand {
124
124
} else if (!this.npm.config.isDefault('expect-result-count')) {
125
125
const expected = this.npm.config.get('expect-result-count')
126
126
if (expected !== entries) {
127
-
/* eslint-disable-next-line max-len */
128
127
log.warn(this.name, `Expected ${expected} result${expected === 1 ? '' : 's'}, got ${entries}`)
129
128
process.exitCode = 1
130
129
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
1
-
/* eslint-disable max-len */
2
-
3
1
// Separated out for easier unit testing
4
2
module.exports = async (process, validateEngines) => {
5
3
// set it here so that regardless of what happens later, we don't
Original file line number Diff line number Diff line change
@@ -11,10 +11,8 @@ const npm = `v${version}`
11
11
module.exports = (process, getCli) => {
12
12
const node = process.version
13
13
14
-
/* eslint-disable-next-line max-len */
15
14
const unsupportedMessage = `npm ${npm} does not support Node.js ${node}. This version of npm supports the following node versions: \`${engines}\`. You can find the latest version at https://nodejs.org/.`
16
15
17
-
/* eslint-disable-next-line max-len */
18
16
const brokenMessage = `ERROR: npm ${npm} is known not to run on Node.js ${node}. This version of npm supports the following node versions: \`${engines}\`. You can find the latest version at https://nodejs.org/.`
19
17
20
18
// coverage ignored because this is only hit in very unsupported node versions
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@ const localeCompare = require('@isaacs/string-locale-compare')('en')
10
10
const { log, output } = require('proc-log')
11
11
12
12
const searchCachePackage = async (path, parsed, cacheKeys) => {
13
-
/* eslint-disable-next-line max-len */
14
13
const searchMFH = new RegExp(`^make-fetch-happen:request-cache:.*(?<!/[@a-zA-Z]+)/${parsed.name}/-/(${parsed.name}[^/]+.tgz)$`)
15
14
const searchPack = new RegExp(`^make-fetch-happen:request-cache:.*/${parsed.escapedName}$`)
16
15
const results = new Set()
@@ -181,7 +180,6 @@ class Cache extends BaseCommand {
181
180
output.standard(`Corrupted content removed: ${stats.badContentCount}`)
182
181
}
183
182
if (stats.reclaimedCount) {
184
-
/* eslint-disable-next-line max-len */
185
183
output.standard(`Content garbage-collected: ${stats.reclaimedCount} (${stats.reclaimedSize} bytes)`)
186
184
}
187
185
if (stats.missingContent) {
Original file line number Diff line number Diff line change
@@ -128,7 +128,6 @@ class Doctor extends BaseCommand {
128
128
129
129
if (!allOk) {
130
130
if (this.npm.silent) {
131
-
/* eslint-disable-next-line max-len */
132
131
throw new Error('Some problems found. Check logs or disable silent mode for recommendations.')
133
132
} else {
134
133
throw new Error('Some problems found. See above for recommendations.')
Original file line number Diff line number Diff line change
@@ -115,7 +115,6 @@ class Install extends ArboristWorkspaceCmd {
115
115
if (forced) {
116
116
log.warn(
117
117
'install',
118
-
/* eslint-disable-next-line max-len */
119
118
`Forcing global npm install with incompatible version ${npmManifest.version} into node ${process.version}`
120
119
)
121
120
} else {
Original file line number Diff line number Diff line change
@@ -61,7 +61,6 @@ class Org extends BaseCommand {
61
61
62
62
if (!['owner', 'admin', 'developer'].find(x => x === role)) {
63
63
throw new Error(
64
-
/* eslint-disable-next-line max-len */
65
64
'Third argument `role` must be one of `owner`, `admin`, or `developer`, with `developer` being the default value if omitted.'
66
65
)
67
66
}
Original file line number Diff line number Diff line change
@@ -61,7 +61,6 @@ class Publish extends BaseCommand {
61
61
if (err.code !== 'EPRIVATE') {
62
62
throw err
63
63
}
64
-
// eslint-disable-next-line max-len
65
64
log.warn('publish', `Skipping workspace ${this.npm.chalk.cyan(name)}, marked as ${this.npm.chalk.bold('private')}`)
66
65
}
67
66
}
@@ -161,7 +160,6 @@ class Publish extends BaseCommand {
161
160
const latestSemverIsGreater = !!latestVersion && semver.gte(latestVersion, manifest.version)
162
161
163
162
if (latestSemverIsGreater && isDefaultTag) {
164
-
/* eslint-disable-next-line max-len */
165
163
throw new Error(`Cannot implicitly apply the "latest" tag because published version ${latestVersion} is higher than the new version ${manifest.version}. You must specify a tag using --tag.`)
166
164
}
167
165
@@ -238,7 +236,6 @@ class Publish extends BaseCommand {
238
236
const changes = []
239
237
const pkg = await pkgJson.fix(spec.fetchSpec, { changes })
240
238
if (changes.length && logWarnings) {
241
-
/* eslint-disable-next-line max-len */
242
239
log.warn('publish', 'npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.')
243
240
log.warn('publish', `errors corrected:\n${changes.join('\n')}`)
244
241
}
Original file line number Diff line number Diff line change
@@ -27,7 +27,6 @@ class SBOM extends BaseCommand {
27
27
const packageLockOnly = this.npm.config.get('package-lock-only')
28
28
29
29
if (!sbomFormat) {
30
-
/* eslint-disable-next-line max-len */
31
30
throw this.usageError(`Must specify --sbom-format flag with one of: ${SBOM_FORMATS.join(', ')}.`)
32
31
}
33
32
@@ -40,7 +39,6 @@ class SBOM extends BaseCommand {
40
39
const arb = new Arborist(opts)
41
40
42
41
const tree = packageLockOnly ? await arb.loadVirtual(opts).catch(() => {
43
-
/* eslint-disable-next-line max-len */
44
42
throw this.usageError('A package lock or shrinkwrap file is required in package-lock-only mode')
45
43
}) : await arb.loadActual(opts)
46
44
Original file line number Diff line number Diff line change
@@ -73,7 +73,6 @@ class Token extends BaseCommand {
73
73
for (const token of tokens) {
74
74
const level = token.readonly ? 'Read only token' : 'Publish token'
75
75
const created = String(token.created).slice(0, 10)
76
-
/* eslint-disable-next-line max-len */
77
76
output.standard(`${chalk.blue(level)} ${token.token}… with id ${chalk.cyan(token.id)} created ${created}`)
78
77
if (token.cidr_whitelist) {
79
78
output.standard(`with IP whitelist: ${chalk.green(token.cidr_whitelist.join(','))}`)
@@ -99,7 +98,6 @@ class Token extends BaseCommand {
99
98
toRemove.push(matches[0].key)
100
99
} else if (matches.length > 1) {
101
100
throw new Error(
102
-
/* eslint-disable-next-line max-len */
103
101
`Token ID "${id}" was ambiguous, a new token may have been created since you last ran \`npm token list\`.`
104
102
)
105
103
} else {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4