From f2c8e95e30f96030241e937a6407d402c3db0128 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sat, 13 Mar 2021 03:33:30 +0200 Subject: [PATCH] fix(deps): update dependency eslint-config-standard-with-typescript to v20 close #3236 --- package.json | 2 +- .../cli-utils/src/packageIsInstallable.ts | 3 +- packages/config/src/index.ts | 10 ++-- packages/error/src/index.ts | 3 +- .../src/getChangedPackages.ts | 3 +- packages/headless/src/index.ts | 6 ++- packages/headless/test/utils/testDefaults.ts | 8 +-- packages/hoist/src/index.ts | 3 +- packages/lifecycle/src/runLifecycleHook.ts | 3 +- packages/link-bins/src/index.ts | 3 +- packages/modules-cleaner/src/prune.ts | 5 +- .../mount-modules/src/createFuseHandlers.ts | 2 +- packages/npm-resolver/src/fetch.ts | 2 +- .../src/update/index.ts | 3 +- .../plugin-commands-publishing/src/publish.ts | 3 +- .../src/runRecursive.ts | 4 +- packages/pnpm/test/install/global.ts | 2 +- packages/prune-lockfile/src/index.ts | 14 ++--- .../src/resolveDependencies.ts | 36 ++++++++----- .../src/createNewStoreController.ts | 6 ++- packages/supi/src/install/index.ts | 7 ++- packages/supi/src/parseWantedDependencies.ts | 3 +- .../tarball-fetcher/src/createDownloader.ts | 3 +- pnpm-lock.yaml | 51 ++++++++++--------- utils/eslint-config/package.json | 2 +- 25 files changed, 111 insertions(+), 76 deletions(-) diff --git a/package.json b/package.json index e4725ce489..228451dc9e 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@types/node": "^14.14.33", "c8": "^7.3.5", "cross-env": "^7.0.3", - "eslint": "^7.16.0", + "eslint": "^7.22.0", "husky": "^4.3.6", "jest": "^26.6.3", "lcov-result-merger": "^3.1.0", diff --git a/packages/cli-utils/src/packageIsInstallable.ts b/packages/cli-utils/src/packageIsInstallable.ts index 6ada636fc2..97488e03f6 100644 --- a/packages/cli-utils/src/packageIsInstallable.ts +++ b/packages/cli-utils/src/packageIsInstallable.ts @@ -14,7 +14,8 @@ export function packageIsInstallable ( } ) { const pnpmVersion = packageManager.name === 'pnpm' - ? packageManager.stableVersion : undefined + ? packageManager.stableVersion + : undefined const err = checkPackage(pkgPath, pkg, { pnpmVersion }) if (err === null) return if ( diff --git a/packages/config/src/index.ts b/packages/config/src/index.ts index 01bb6085b8..f432d6dfb5 100644 --- a/packages/config/src/index.ts +++ b/packages/config/src/index.ts @@ -1,13 +1,13 @@ import path from 'path' +import fs from 'fs' +import os from 'os' import { LAYOUT_VERSION } from '@pnpm/constants' import PnpmError from '@pnpm/error' import globalBinDir from '@pnpm/global-bin-dir' import camelcase from 'camelcase' -import fs from 'fs' import loadNpmConf from '@zkochan/npm-conf' import npmTypes from '@zkochan/npm-conf/lib/types' import { sync as canWriteToDir } from 'can-write-to-dir' -import os from 'os' import * as R from 'ramda' import realpathMissing from 'realpath-missing' import whichcb from 'which' @@ -247,7 +247,8 @@ export default async ( if (cliOptions['global']) { const npmGlobalPrefix: string = findBestGlobalPrefix(npmConfig.globalPrefix, process.env) const globalDirRoot = pnpmConfig['globalDir'] - ? pnpmConfig['globalDir'] : path.join(firstWithWriteAccess([npmGlobalPrefix, os.homedir()]), 'pnpm-global') + ? pnpmConfig['globalDir'] + : path.join(firstWithWriteAccess([npmGlobalPrefix, os.homedir()]), 'pnpm-global') pnpmConfig.dir = path.join(globalDirRoot, LAYOUT_VERSION.toString()) const npmGlobalBinDir = process.platform === 'win32' @@ -256,7 +257,8 @@ export default async ( pnpmConfig.bin = cliOptions.dir ? ( process.platform === 'win32' - ? cliOptions.dir : path.resolve(cliOptions.dir, 'bin') + ? cliOptions.dir + : path.resolve(cliOptions.dir, 'bin') ) : globalBinDir([npmGlobalBinDir], { shouldAllowWrite: opts.globalDirShouldAllowWrite === true }) pnpmConfig.save = true diff --git a/packages/error/src/index.ts b/packages/error/src/index.ts index 1366e985db..3eb3bf5716 100644 --- a/packages/error/src/index.ts +++ b/packages/error/src/index.ts @@ -33,7 +33,8 @@ export class FetchError extends PnpmError { ) { const message = `GET ${request.url}: ${response.statusText} - ${response.status}` const authHeaderValue = request.authHeaderValue - ? hideAuthInformation(request.authHeaderValue) : undefined + ? hideAuthInformation(request.authHeaderValue) + : undefined // NOTE: For security reasons, some registries respond with 404 on authentication errors as well. // So we print authorization info on 404 errors as well. if (response.status === 401 || response.status === 403 || response.status === 404) { diff --git a/packages/filter-workspace-packages/src/getChangedPackages.ts b/packages/filter-workspace-packages/src/getChangedPackages.ts index 31939d0b0e..583c46b044 100644 --- a/packages/filter-workspace-packages/src/getChangedPackages.ts +++ b/packages/filter-workspace-packages/src/getChangedPackages.ts @@ -71,7 +71,8 @@ async function getChangedDirsSinceCommit (commit: string, workingDir: string, te if (changedDirs.get(dir) === 'source') continue const changeType: ChangeType = testPattern.some(pattern => micromatch.isMatch(changedFile, pattern)) - ? 'test' : 'source' + ? 'test' + : 'source' changedDirs.set(dir, changeType) } diff --git a/packages/headless/src/index.ts b/packages/headless/src/index.ts index 26f569ad26..acb5658fc3 100644 --- a/packages/headless/src/index.ts +++ b/packages/headless/src/index.ts @@ -405,7 +405,8 @@ export default async (opts: HeadlessOptions) => { pendingBuilds: opts.pendingBuilds, publicHoistPattern: opts.publicHoistPattern, prunedAt: opts.pruneVirtualStore === true || opts.prunedAt == null - ? new Date().toUTCString() : opts.prunedAt, + ? new Date().toUTCString() + : opts.prunedAt, registries: opts.registries, skipped: Array.from(skipped), storeDir: opts.storeDir, @@ -622,7 +623,8 @@ async function lockfileToDepGraph ( packageId, requester: opts.lockfileDir, status: fromStore - ? 'found_in_store' : 'fetched', + ? 'found_in_store' + : 'fetched', }) }) .catch(() => { diff --git a/packages/headless/test/utils/testDefaults.ts b/packages/headless/test/utils/testDefaults.ts index 629ec5be58..ead874b8ff 100644 --- a/packages/headless/test/utils/testDefaults.ts +++ b/packages/headless/test/utils/testDefaults.ts @@ -63,9 +63,11 @@ export default async function testDefaults ( version: '1.0.0', }, pendingBuilds, - projects: opts.projects ? opts.projects : await Promise.all( - projects.map(async (project) => ({ ...project, manifest: await readPackageJsonFromDir(project.rootDir) })) - ), + projects: opts.projects + ? opts.projects + : await Promise.all( + projects.map(async (project) => ({ ...project, manifest: await readPackageJsonFromDir(project.rootDir) })) + ), rawConfig: {}, registries: registries ?? { default: registry, diff --git a/packages/hoist/src/index.ts b/packages/hoist/src/index.ts index f6b209ecea..cd6412b5d8 100644 --- a/packages/hoist/src/index.ts +++ b/packages/hoist/src/index.ts @@ -202,7 +202,8 @@ async function symlinkHoistedDependencies ( const depLocation = path.join(modules, pkgName) await Promise.all(Object.entries(pkgAliases).map(async ([pkgAlias, hoistType]) => { const targetDir = hoistType === 'public' - ? opts.publicHoistedModulesDir : opts.privateHoistedModulesDir + ? opts.publicHoistedModulesDir + : opts.privateHoistedModulesDir await symlinkDependency(depLocation, targetDir, pkgAlias) })) } diff --git a/packages/lifecycle/src/runLifecycleHook.ts b/packages/lifecycle/src/runLifecycleHook.ts index f059d598a8..f5637fa951 100644 --- a/packages/lifecycle/src/runLifecycleHook.ts +++ b/packages/lifecycle/src/runLifecycleHook.ts @@ -50,7 +50,8 @@ export default async function runLifecycleHook ( }) } const logLevel = (opts.stdio !== 'inherit' || opts.silent) - ? 'silent' : undefined + ? 'silent' + : undefined await lifecycle(m, stage, opts.pkgRoot, { config: opts.rawConfig, dir: opts.rootModulesDir, diff --git a/packages/link-bins/src/index.ts b/packages/link-bins/src/index.ts index 6b6129efb3..326f027274 100644 --- a/packages/link-bins/src/index.ts +++ b/packages/link-bins/src/index.ts @@ -128,7 +128,8 @@ async function getPackageBins ( target: string ): Promise { const manifest = opts.allowExoticManifests - ? (await safeReadProjectManifestOnly(target) as DependencyManifest) : await safeReadPkgJson(target) + ? (await safeReadProjectManifestOnly(target) as DependencyManifest) + : await safeReadPkgJson(target) if (!manifest) { // There's a directory in node_modules without package.json: ${target}. diff --git a/packages/modules-cleaner/src/prune.ts b/packages/modules-cleaner/src/prune.ts index 5b44c7a54d..97d58bcd36 100644 --- a/packages/modules-cleaner/src/prune.ts +++ b/packages/modules-cleaner/src/prune.ts @@ -127,8 +127,9 @@ export default async function prune ( if (opts.hoistedDependencies[orphanDepPath]) { await Promise.all(Object.entries(opts.hoistedDependencies[orphanDepPath]).map(([alias, hoistType]) => { const modulesDir = hoistType === 'public' - ? opts.publicHoistedModulesDir! : opts.hoistedModulesDir! - if (!modulesDir) return + ? opts.publicHoistedModulesDir! + : opts.hoistedModulesDir! + if (!modulesDir) return undefined return removeDirectDependency({ name: alias, }, { diff --git a/packages/mount-modules/src/createFuseHandlers.ts b/packages/mount-modules/src/createFuseHandlers.ts index d4a9448d47..70290a813d 100644 --- a/packages/mount-modules/src/createFuseHandlers.ts +++ b/packages/mount-modules/src/createFuseHandlers.ts @@ -26,7 +26,7 @@ export default async function createFuseHandlers (lockfileDir: string, cafsDir: return createFuseHandlersFromLockfile(lockfile, lockfileDir, cafsDir) } -/* eslint-disable standard/no-callback-literal */ +/* eslint-disable node/no-callback-literal */ export function createFuseHandlersFromLockfile (lockfile: Lockfile, lockfileDir: string, cafsDir: string) { const pkgSnapshotCache = new Map() const virtualNodeModules = makeVirtualNodeModules(lockfile, lockfileDir) diff --git a/packages/npm-resolver/src/fetch.ts b/packages/npm-resolver/src/fetch.ts index 2f148424d2..6e310f51e3 100644 --- a/packages/npm-resolver/src/fetch.ts +++ b/packages/npm-resolver/src/fetch.ts @@ -16,7 +16,7 @@ interface RegistryResponse { } // https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string -const semverRegex = new RegExp(/(.*)(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/) +const semverRegex = /(.*)(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/ export class RegistryResponseError extends FetchError { public readonly pkgName: string diff --git a/packages/plugin-commands-installation/src/update/index.ts b/packages/plugin-commands-installation/src/update/index.ts index 3aa49bfaec..20876fa5c3 100644 --- a/packages/plugin-commands-installation/src/update/index.ts +++ b/packages/plugin-commands-installation/src/update/index.ts @@ -246,7 +246,8 @@ async function update ( includeDirect, update: true, updateMatching: dependencies.length && dependencies.every(dep => !dep.substring(1).includes('@')) && depth > 0 && !opts.latest - ? matcher(dependencies) : undefined, + ? matcher(dependencies) + : undefined, updatePackageManifest: opts.save !== false, }, dependencies) } diff --git a/packages/plugin-commands-publishing/src/publish.ts b/packages/plugin-commands-publishing/src/publish.ts index c3d3c660e3..392a531fac 100644 --- a/packages/plugin-commands-publishing/src/publish.ts +++ b/packages/plugin-commands-publishing/src/publish.ts @@ -222,7 +222,8 @@ export async function fakeRegularManifest ( // If a workspace package has no License of its own, // license files from the root of the workspace are used const copiedLicenses: string[] = opts.dir !== opts.workspaceDir && (await findLicenses({ cwd: opts.dir })).length === 0 - ? await copyLicenses(opts.workspaceDir, opts.dir) : [] + ? await copyLicenses(opts.workspaceDir, opts.dir) + : [] const { fileName, manifest, writeProjectManifest } = await readProjectManifest(opts.dir, opts) const publishManifest = await exportableManifest(opts.dir, manifest) diff --git a/packages/plugin-commands-script-runners/src/runRecursive.ts b/packages/plugin-commands-script-runners/src/runRecursive.ts index 0d469dc465..123e2d9e82 100644 --- a/packages/plugin-commands-script-runners/src/runRecursive.ts +++ b/packages/plugin-commands-script-runners/src/runRecursive.ts @@ -47,7 +47,9 @@ export default async ( const stdio = ( opts.workspaceConcurrency === 1 || packageChunks.length === 1 && packageChunks[0].length === 1 - ) ? 'inherit' : 'pipe' + ) + ? 'inherit' + : 'pipe' const existsPnp = existsInDir.bind(null, '.pnp.cjs') const workspacePnpPath = opts.workspaceDir && await existsPnp(opts.workspaceDir) diff --git a/packages/pnpm/test/install/global.ts b/packages/pnpm/test/install/global.ts index bb866087c7..50bd1f8bcf 100644 --- a/packages/pnpm/test/install/global.ts +++ b/packages/pnpm/test/install/global.ts @@ -1,7 +1,7 @@ import path from 'path' +import { promises as fs } from 'fs' import { LAYOUT_VERSION } from '@pnpm/constants' import prepare from '@pnpm/prepare' -import { promises as fs } from 'fs' import isWindows from 'is-windows' import exists from 'path-exists' import { diff --git a/packages/prune-lockfile/src/index.ts b/packages/prune-lockfile/src/index.ts index a331003fe5..f5ec8b67c8 100644 --- a/packages/prune-lockfile/src/index.ts +++ b/packages/prune-lockfile/src/index.ts @@ -17,12 +17,14 @@ export function pruneSharedLockfile ( warn?: (msg: string) => void } ) { - const copiedPackages = !lockfile.packages ? {} : copyPackageSnapshots(lockfile.packages, { - devDepPaths: R.unnest(R.values(lockfile.importers).map((deps) => resolvedDepsToDepPaths(deps.devDependencies ?? {}))), - optionalDepPaths: R.unnest(R.values(lockfile.importers).map((deps) => resolvedDepsToDepPaths(deps.optionalDependencies ?? {}))), - prodDepPaths: R.unnest(R.values(lockfile.importers).map((deps) => resolvedDepsToDepPaths(deps.dependencies ?? {}))), - warn: opts?.warn ?? ((msg: string) => undefined), - }) + const copiedPackages = (lockfile.packages == null) + ? {} + : copyPackageSnapshots(lockfile.packages, { + devDepPaths: R.unnest(R.values(lockfile.importers).map((deps) => resolvedDepsToDepPaths(deps.devDependencies ?? {}))), + optionalDepPaths: R.unnest(R.values(lockfile.importers).map((deps) => resolvedDepsToDepPaths(deps.optionalDependencies ?? {}))), + prodDepPaths: R.unnest(R.values(lockfile.importers).map((deps) => resolvedDepsToDepPaths(deps.dependencies ?? {}))), + warn: opts?.warn ?? ((msg: string) => undefined), + }) const prunnedLockfile: Lockfile = { ...lockfile, diff --git a/packages/resolve-dependencies/src/resolveDependencies.ts b/packages/resolve-dependencies/src/resolveDependencies.ts index c7efa54e6c..044da0b44c 100644 --- a/packages/resolve-dependencies/src/resolveDependencies.ts +++ b/packages/resolve-dependencies/src/resolveDependencies.ts @@ -269,7 +269,8 @@ async function resolveDependenciesOfDependency ( extendedWantedDep: ExtendedWantedDependency ) { const updateDepth = typeof extendedWantedDep.wantedDependency.updateDepth === 'number' - ? extendedWantedDep.wantedDependency.updateDepth : options.updateDepth + ? extendedWantedDep.wantedDependency.updateDepth + : options.updateDepth const updateShouldContinue = options.currentDepth <= updateDepth const update = ( updateShouldContinue && ( @@ -336,10 +337,12 @@ async function resolveChildren ( updateDepth: number, preferredVersions: PreferredVersions ) { - const currentResolvedDependencies = dependencyLockfile ? { - ...dependencyLockfile.dependencies, - ...dependencyLockfile.optionalDependencies, - } : undefined + const currentResolvedDependencies = dependencyLockfile + ? { + ...dependencyLockfile.dependencies, + ...dependencyLockfile.optionalDependencies, + } + : undefined const resolvedDependencies = parentPkg.updated ? undefined : currentResolvedDependencies @@ -573,7 +576,8 @@ async function resolveDependency ( const currentPkg = options.currentPkg ?? {} const currentLockfileContainsTheDep = currentPkg.depPath - ? Boolean(ctx.currentLockfile.packages?.[currentPkg.depPath]) : undefined + ? Boolean(ctx.currentLockfile.packages?.[currentPkg.depPath]) + : undefined const depIsLinked = Boolean( // if package is not in `node_modules/.pnpm-lock.yaml` // we can safely assume that it doesn't exist in `node_modules` @@ -599,12 +603,14 @@ async function resolveDependency ( try { pkgResponse = await ctx.storeController.requestPackage(wantedDependency, { alwaysTryWorkspacePackages: ctx.linkWorkspacePackagesDepth >= options.currentDepth, - currentPkg: currentPkg ? { - name: currentPkg.name, - version: currentPkg.version, - id: currentPkg.pkgId, - resolution: currentPkg.resolution, - } : undefined, + currentPkg: currentPkg + ? { + name: currentPkg.name, + version: currentPkg.version, + id: currentPkg.pkgId, + resolution: currentPkg.resolution, + } + : undefined, defaultTag: ctx.defaultTag, downloadPriority: -options.currentDepth, lockfileDir: ctx.lockfileDir, @@ -789,7 +795,8 @@ async function resolveDependency ( packageId: pkgResponse.body.id, requester: ctx.lockfileDir, status: fetchResult.fromStore - ? 'found_in_store' : 'fetched', + ? 'found_in_store' + : 'fetched', }) }) .catch(() => { @@ -890,7 +897,8 @@ function getResolvedPackage ( prepare: options.prepare, prod: !options.wantedDependency.dev && !options.wantedDependency.optional, requiresBuild: options.neverBuiltDependencies.has(options.pkg.name) - ? false : (options.dependencyLockfile && Boolean(options.dependencyLockfile.requiresBuild)), + ? false + : (options.dependencyLockfile && Boolean(options.dependencyLockfile.requiresBuild)), resolution: options.pkgResponse.body.resolution, version: options.pkg.version, } diff --git a/packages/store-connection-manager/src/createNewStoreController.ts b/packages/store-connection-manager/src/createNewStoreController.ts index 239f3eff64..40b045b52d 100644 --- a/packages/store-connection-manager/src/createNewStoreController.ts +++ b/packages/store-connection-manager/src/createNewStoreController.ts @@ -59,7 +59,8 @@ export default async ( strictSSL: opts.strictSsl ?? true, userAgent: opts.userAgent, maxSockets: opts.networkConcurrency != null - ? (opts.networkConcurrency * 3) : undefined, + ? (opts.networkConcurrency * 3) + : undefined, }) await fs.mkdir(opts.storeDir, { recursive: true }) return { @@ -69,7 +70,8 @@ export default async ( packageImportMethod: opts.packageImportMethod, storeDir: opts.storeDir, verifyStoreIntegrity: typeof opts.verifyStoreIntegrity === 'boolean' - ? opts.verifyStoreIntegrity : true, + ? opts.verifyStoreIntegrity + : true, }), dir: opts.storeDir, } diff --git a/packages/supi/src/install/index.ts b/packages/supi/src/install/index.ts index 22fc72f09d..7faaaaf4f6 100644 --- a/packages/supi/src/install/index.ts +++ b/packages/supi/src/install/index.ts @@ -661,7 +661,9 @@ const _installInContext: InstallFunction = async (projects, ctx, opts) => { !opts.update && ctx.wantedLockfile.packages && !R.isEmpty(ctx.wantedLockfile.packages) - ) ? getPreferredVersionsFromLockfile(ctx.wantedLockfile.packages) : undefined + ) + ? getPreferredVersionsFromLockfile(ctx.wantedLockfile.packages) + : undefined ) const forceFullResolution = ctx.wantedLockfile.lockfileVersion !== LOCKFILE_VERSION || !opts.currentLockfileIsUpToDate || @@ -971,7 +973,8 @@ async function toResolveImporter ( const updateLocalTarballs = (dep: WantedDependency) => ({ ...dep, updateDepth: opts.updateAll - ? opts.defaultUpdateDepth : (prefIsLocalTarball(dep.pref) ? 0 : -1), + ? opts.defaultUpdateDepth + : (prefIsLocalTarball(dep.pref) ? 0 : -1), }) wantedDependencies = [ ...project.wantedDependencies.map( diff --git a/packages/supi/src/parseWantedDependencies.ts b/packages/supi/src/parseWantedDependencies.ts index 328bd6cfcf..9d1080b9b2 100644 --- a/packages/supi/src/parseWantedDependencies.ts +++ b/packages/supi/src/parseWantedDependencies.ts @@ -30,7 +30,8 @@ export default function parseWantedDependencies ( if (alias && opts.currentPrefs[alias]) { if (!pref) { pref = (opts.currentPrefs[alias].startsWith('workspace:') && opts.updateWorkspaceDependencies === true) - ? 'workspace:*' : opts.currentPrefs[alias] + ? 'workspace:*' + : opts.currentPrefs[alias] } pinnedVersion = guessPinnedVersionFromExistingSpec(opts.currentPrefs[alias]) } diff --git a/packages/tarball-fetcher/src/createDownloader.ts b/packages/tarball-fetcher/src/createDownloader.ts index cd9291894d..73771947a0 100644 --- a/packages/tarball-fetcher/src/createDownloader.ts +++ b/packages/tarball-fetcher/src/createDownloader.ts @@ -157,7 +157,8 @@ export default ( } // In order to reduce the amount of logs, we only report the download progress of big tarballs const onProgress = size != null && size >= BIG_TARBALL_SIZE - ? opts.onProgress : undefined + ? opts.onProgress + : undefined let downloaded = 0 res.body.on('data', (chunk: Buffer) => { downloaded += chunk.length diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d96a8f219b..2d5a5c6d05 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,7 +14,7 @@ importers: '@types/node': 14.14.33 c8: 7.6.0 cross-env: 7.0.3 - eslint: 7.21.0 + eslint: 7.22.0 husky: 4.3.8 jest: 26.6.3_ts-node@9.1.1 lcov-result-merger: 3.1.0 @@ -41,7 +41,7 @@ importers: '@types/node': ^14.14.33 c8: ^7.3.5 cross-env: ^7.0.3 - eslint: ^7.16.0 + eslint: ^7.22.0 husky: ^4.3.6 jest: ^26.6.3 lcov-result-merger: ^3.1.0 @@ -3107,14 +3107,14 @@ importers: utils/eslint-config: dependencies: '@typescript-eslint/eslint-plugin': 4.17.0 - eslint-config-standard-with-typescript: 19.0.1_5504f766ddc9fd128551e1e6f422252a + eslint-config-standard-with-typescript: 20.0.0_1c77e2750328318addf34231f71a2c67 eslint-plugin-import: 2.22.1 eslint-plugin-node: 11.1.0 eslint-plugin-promise: 4.3.1 eslint-plugin-standard: 4.1.0 specifiers: '@typescript-eslint/eslint-plugin': ^4.17.0 - eslint-config-standard-with-typescript: ^19.0.1 + eslint-config-standard-with-typescript: ^20.0.0 eslint-plugin-import: ^2.22.1 eslint-plugin-node: ^11.1.0 eslint-plugin-promise: ^4.2.1 @@ -7238,42 +7238,38 @@ packages: optionalDependencies: source-map: 0.6.1 - /eslint-config-standard-with-typescript/19.0.1_5504f766ddc9fd128551e1e6f422252a: - resolution: {integrity: sha512-hAKj81+f4a+9lnvpHwZ4XSL672CbwSe5UJ7fTdL/RsQdqs4IjHudMETZuNQwwU7NlYpBTF9se7FRf5Pp7CVdag==} + /eslint-config-standard-with-typescript/20.0.0_1c77e2750328318addf34231f71a2c67: + resolution: {integrity: sha512-IoySf3r0a2+P3Z6GMjv8p1HuOQ6GWQbMpdt9G8uEbkGpnNWAGBXpgaiutbZHbaQAvG5pkVtYepCfHUxYbVDLCA==} dependencies: '@typescript-eslint/eslint-plugin': 4.17.0 '@typescript-eslint/parser': 4.17.0 - eslint-config-standard: 14.1.1_783d82be56f3d23aa30c2a5bdd353f2f + eslint-config-standard: 16.0.2_e6401c7705d8729573cd1e8b5611bac2 eslint-plugin-import: 2.22.1 eslint-plugin-node: 11.1.0 eslint-plugin-promise: 4.3.1 - eslint-plugin-standard: 4.1.0 dev: false peerDependencies: '@typescript-eslint/eslint-plugin': '>=4.0.1' - eslint: '>=6.2.2' - eslint-plugin-import: '>=2.18.0' - eslint-plugin-node: '>=9.1.0' + eslint: '>=7.12.1' + eslint-plugin-import: '>=2.22.1' + eslint-plugin-node: '>=11.1.0' eslint-plugin-promise: '>=4.2.1' - eslint-plugin-standard: '>=4.0.0' typescript: '>=3.9' transitivePeerDependencies: - supports-color - /eslint-config-standard/14.1.1_783d82be56f3d23aa30c2a5bdd353f2f: - resolution: {integrity: sha512-Z9B+VR+JIXRxz21udPTL9HpFMyoMUEeX1G251EQ6e05WD9aPVtVBn09XUmZ259wCMlCDmYDSZG62Hhm+ZTJcUg==} + /eslint-config-standard/16.0.2_e6401c7705d8729573cd1e8b5611bac2: + resolution: {integrity: sha512-fx3f1rJDsl9bY7qzyX8SAtP8GBSk6MfXFaTfaGgk12aAYW4gJSyRm7dM790L6cbXv63fvjY4XeSzXnb4WM+SKw==} dependencies: eslint-plugin-import: 2.22.1 eslint-plugin-node: 11.1.0 eslint-plugin-promise: 4.3.1 - eslint-plugin-standard: 4.1.0 dev: false peerDependencies: - eslint: '>=6.2.2' - eslint-plugin-import: '>=2.18.0' - eslint-plugin-node: '>=9.1.0' - eslint-plugin-promise: '>=4.2.1' - eslint-plugin-standard: '>=4.0.0' + eslint: ^7.12.1 + eslint-plugin-import: ^2.22.1 + eslint-plugin-node: ^11.1.0 + eslint-plugin-promise: ^4.2.1 /eslint-import-resolver-node/0.3.4: resolution: {integrity: sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==} @@ -7367,8 +7363,8 @@ packages: resolution: {integrity: sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==} engines: {node: '>=10'} - /eslint/7.21.0: - resolution: {integrity: sha512-W2aJbXpMNofUp0ztQaF40fveSsJBjlSCSWpy//gzfTvwC+USs/nceBrKmlJOiM8r1bLwP2EuYkCqArn/6QTIgg==} + /eslint/7.22.0: + resolution: {integrity: sha512-3VawOtjSJUQiiqac8MQc+w457iGLfuNGLFn8JmF051tTKbh5/x/0vlcEj8OgDCaw7Ysa2Jn8paGshV7x2abKXg==} engines: {node: ^10.12.0 || >=12.0.0} dependencies: '@babel/code-frame': 7.12.11 @@ -7388,7 +7384,7 @@ packages: file-entry-cache: 6.0.1 functional-red-black-tree: 1.0.1 glob-parent: 5.1.2 - globals: 12.4.0 + globals: 13.6.0 ignore: 4.0.6 import-fresh: 3.3.0 imurmurhash: 0.1.4 @@ -8246,6 +8242,13 @@ packages: type-fest: 0.8.1 dev: true + /globals/13.6.0: + resolution: {integrity: sha512-YFKCX0SiPg7l5oKYCJ2zZGxcXprVXHcSnVuvzrT3oSENQonVLqM5pf9fN5dLGZGyCjhw8TN8Btwe/jKnZ0pjvQ==} + engines: {node: '>=8'} + dependencies: + type-fest: 0.20.2 + dev: true + /globby/11.0.2: resolution: {integrity: sha512-2ZThXDvvV8fYFRVIxnrMQBipZQDr7MxKAmQK1vujaj9/7eF0efG7BPUKJ7jP7G5SLF37xKDXvO4S/KKLj/Z0og==} engines: {node: '>=10'} @@ -13453,8 +13456,6 @@ packages: /type-fest/0.20.2: resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} engines: {node: '>=10'} - dev: false - optional: true /type-fest/0.4.1: resolution: {integrity: sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw==} diff --git a/utils/eslint-config/package.json b/utils/eslint-config/package.json index e784fe6c31..897de82ec2 100644 --- a/utils/eslint-config/package.json +++ b/utils/eslint-config/package.json @@ -25,7 +25,7 @@ "scripts": {}, "dependencies": { "@typescript-eslint/eslint-plugin": "^4.17.0", - "eslint-config-standard-with-typescript": "^19.0.1", + "eslint-config-standard-with-typescript": "^20.0.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1",