Skip to content

Commit

Permalink
Remove 'use strict'
Browse files Browse the repository at this point in the history
We have a linter.

yolo
  • Loading branch information
isaacs committed Dec 11, 2020
1 parent 011bb12 commit b1871e4
Show file tree
Hide file tree
Showing 54 changed files with 0 additions and 93 deletions.
2 changes: 0 additions & 2 deletions lib/access.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const path = require('path')

const libaccess = require('libnpmaccess')
Expand Down
2 changes: 0 additions & 2 deletions lib/adduser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const log = require('npmlog')
const npm = require('./npm.js')
const output = require('./utils/output.js')
Expand Down
2 changes: 0 additions & 2 deletions lib/auth/legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const log = require('npmlog')
const profile = require('npm-profile')

Expand Down
2 changes: 0 additions & 2 deletions lib/auth/sso.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

// XXX: To date, npm Enterprise Legacy is the only system that ever
// implemented support for this type of login. A better way to do
// SSO is to use the WebLogin type of login supported by the npm-login
Expand Down
2 changes: 0 additions & 2 deletions lib/deprecate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const npm = require('./npm.js')
const fetch = require('npm-registry-fetch')
const otplease = require('./utils/otplease.js')
Expand Down
2 changes: 0 additions & 2 deletions lib/dist-tag.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const log = require('npmlog')
const npa = require('npm-package-arg')
const regFetch = require('npm-registry-fetch')
Expand Down
2 changes: 0 additions & 2 deletions lib/init.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const initJson = require('init-package-json')
const npa = require('npm-package-arg')

Expand Down
1 change: 0 additions & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
/* eslint-disable camelcase */
/* eslint-disable standard/no-callback-literal */
const fs = require('fs')
Expand Down
2 changes: 0 additions & 2 deletions lib/link.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const { readdir } = require('fs')
const { resolve } = require('path')

Expand Down
2 changes: 0 additions & 2 deletions lib/logout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const eu = encodeURIComponent
const log = require('npmlog')
const getAuth = require('npm-registry-fetch/auth.js')
Expand Down
2 changes: 0 additions & 2 deletions lib/ls.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const { resolve } = require('path')
const { EOL } = require('os')

Expand Down
2 changes: 0 additions & 2 deletions lib/org.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const liborg = require('libnpmorg')
const npm = require('./npm.js')
const output = require('./utils/output.js')
Expand Down
2 changes: 0 additions & 2 deletions lib/outdated.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const os = require('os')
const path = require('path')
const pacote = require('pacote')
Expand Down
2 changes: 0 additions & 2 deletions lib/owner.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const log = require('npmlog')
const npa = require('npm-package-arg')
const npmFetch = require('npm-registry-fetch')
Expand Down
2 changes: 0 additions & 2 deletions lib/profile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const ansistyles = require('ansistyles')
const inspect = require('util').inspect
const log = require('npmlog')
Expand Down
2 changes: 0 additions & 2 deletions lib/publish.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const util = require('util')
const log = require('npmlog')
const semver = require('semver')
Expand Down
2 changes: 0 additions & 2 deletions lib/rebuild.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const { resolve } = require('path')
const Arborist = require('@npmcli/arborist')
const npa = require('npm-package-arg')
Expand Down
2 changes: 0 additions & 2 deletions lib/search.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const Minipass = require('minipass')
const Pipeline = require('minipass-pipeline')
const libSearch = require('libnpmsearch')
Expand Down
2 changes: 0 additions & 2 deletions lib/search/format-package-stream.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

// XXX these output classes should not live in here forever. it'd be good to
// split them out, perhaps to libnpmsearch

Expand Down
2 changes: 0 additions & 2 deletions lib/search/package-filter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

module.exports = filter
function filter (data, include, exclude, opts) {
return typeof data === 'object' &&
Expand Down
2 changes: 0 additions & 2 deletions lib/set-script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const log = require('npmlog')
const usageUtil = require('./utils/usage.js')
const { localPrefix } = require('./npm.js')
Expand Down
2 changes: 0 additions & 2 deletions lib/shrinkwrap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const { resolve, basename } = require('path')
const { promises: { unlink } } = require('fs')
const Arborist = require('@npmcli/arborist')
Expand Down
2 changes: 0 additions & 2 deletions lib/star.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const fetch = require('npm-registry-fetch')
const log = require('npmlog')
const npa = require('npm-package-arg')
Expand Down
2 changes: 0 additions & 2 deletions lib/stars.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const log = require('npmlog')
const fetch = require('npm-registry-fetch')

Expand Down
2 changes: 0 additions & 2 deletions lib/team.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const columns = require('cli-columns')
const libteam = require('libnpmteam')

Expand Down
2 changes: 0 additions & 2 deletions lib/token.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const profile = require('npm-profile')
const npm = require('./npm.js')
const output = require('./utils/output.js')
Expand Down
2 changes: 0 additions & 2 deletions lib/uninstall.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const { resolve } = require('path')
const Arborist = require('@npmcli/arborist')
const rpj = require('read-package-json-fast')
Expand Down
2 changes: 0 additions & 2 deletions lib/unpublish.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const path = require('path')
const util = require('util')
const log = require('npmlog')
Expand Down
2 changes: 0 additions & 2 deletions lib/update.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const path = require('path')

const Arborist = require('@npmcli/arborist')
Expand Down
1 change: 0 additions & 1 deletion lib/utils/child-path.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
var path = require('path')
var validate = require('aproba')
var moduleName = require('../utils/module-name.js')
Expand Down
2 changes: 0 additions & 2 deletions lib/utils/completion/installed-deep.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const { resolve } = require('path')
const Arborist = require('@npmcli/arborist')
const npm = require('../../npm.js')
Expand Down
1 change: 0 additions & 1 deletion lib/utils/deep-sort-object.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
var sortedObject = require('sorted-object')

module.exports = function deepSortObject (obj) {
Expand Down
2 changes: 0 additions & 2 deletions lib/utils/error-handler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

let cbCalled = false
const log = require('npmlog')
const npm = require('../npm.js')
Expand Down
2 changes: 0 additions & 2 deletions lib/utils/error-message.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const npm = require('../npm.js')
const { format } = require('util')
const { resolve } = require('path')
Expand Down
2 changes: 0 additions & 2 deletions lib/utils/git.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const exec = require('child_process').execFile
const spawn = require('./spawn')
const npm = require('../npm.js')
Expand Down
1 change: 0 additions & 1 deletion lib/utils/is-windows-bash.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
const isWindows = require('./is-windows.js')
module.exports = isWindows &&
(/^MINGW(32|64)$/.test(process.env.MSYSTEM) || process.env.TERM === 'cygwin')
1 change: 0 additions & 1 deletion lib/utils/is-windows-shell.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
const isWindows = require('./is-windows.js')
const isWindowsBash = require('./is-windows-bash.js')
module.exports = isWindows && !isWindowsBash
1 change: 0 additions & 1 deletion lib/utils/is-windows.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
'use strict'
module.exports = process.platform === 'win32'
1 change: 0 additions & 1 deletion lib/utils/metrics-launch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
/* eslint-disable camelcase */
module.exports = launchSendMetrics
var fs = require('graceful-fs')
Expand Down
1 change: 0 additions & 1 deletion lib/utils/metrics.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
exports.start = startMetrics
exports.stop = stopMetrics
exports.save = saveMetrics
Expand Down
1 change: 0 additions & 1 deletion lib/utils/module-name.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
var path = require('path')

module.exports = moduleName
Expand Down
1 change: 0 additions & 1 deletion lib/utils/no-progress-while-running.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
var log = require('npmlog')
var progressEnabled
var running = 0
Expand Down
1 change: 0 additions & 1 deletion lib/utils/open-url.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
const npm = require('../npm.js')
const output = require('./output.js')
const opener = require('opener')
Expand Down
2 changes: 0 additions & 2 deletions lib/utils/otplease.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const prompt = 'This operation requires a one-time password.\nEnter OTP:'
const readUserInfo = require('./read-user-info.js')

Expand Down
1 change: 0 additions & 1 deletion lib/utils/pulse-till-done.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
const validate = require('aproba')
const log = require('npmlog')

Expand Down
2 changes: 0 additions & 2 deletions lib/utils/read-local-package.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const { resolve } = require('path')
const readJson = require('read-package-json-fast')
const npm = require('../npm.js')
Expand Down
1 change: 0 additions & 1 deletion lib/utils/read-user-info.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
const { promisify } = require('util')
const readAsync = promisify(require('read'))
const userValidate = require('npm-user-validate')
Expand Down
2 changes: 0 additions & 2 deletions lib/utils/replace-info.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const URL = require('url').URL

// replaces auth info in an array of arguments or in a strings
Expand Down
1 change: 0 additions & 1 deletion lib/utils/usage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
var aliases = require('../utils/cmd-list').aliases

module.exports = function usage (cmd, txt, opt) {
Expand Down
2 changes: 0 additions & 2 deletions lib/version.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const libversion = require('libnpmversion')
const npm = require('./npm.js')
const output = require('./utils/output.js')
Expand Down
2 changes: 0 additions & 2 deletions test/coverage-map.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const full = process.env.npm_lifecycle_event === 'check-coverage'
const coverageMap = (filename) => {
if (full && /load-all.js$/.test(filename)) {
Expand Down
2 changes: 0 additions & 2 deletions test/lib/fund.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const { test } = require('tap')
const requireInject = require('require-inject')

Expand Down
1 change: 0 additions & 1 deletion test/lib/npm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
const t = require('tap')
const fs = require('fs')

Expand Down
2 changes: 0 additions & 2 deletions test/lib/utils/reify-output.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const t = require('tap')
const requireInject = require('require-inject')

Expand Down

0 comments on commit b1871e4

Please sign in to comment.