diff --git a/.eslintrc.js b/.eslintrc.js index dfeed5d012c14586b0ec10341fd48ae18dd36212..ffb596076a199d1da66c1ab47573eb3957511636 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -71,7 +71,10 @@ module.exports = { // disallow direct `nock` module usage as it causes memory issues. // disallow `parse-link-header` to allow override ENV https://github.com/thlorenz/parse-link-header#environmental-variables - 'no-restricted-imports': [2, { paths: ['nock', 'parse-link-header'] }], + 'no-restricted-imports': [ + 2, + { paths: ['nock', 'parse-link-header', 'path'] }, + ], // Makes no sense to allow type inference for expression parameters, but require typing the response '@typescript-eslint/explicit-function-return-type': [ diff --git a/lib/modules/manager/nuget/artifacts.ts b/lib/modules/manager/nuget/artifacts.ts index 68366a2b7cba0c8acd36f2a8513a7fb3afa43eb6..bd3a4e733db657ff233d98c0156627102db9a564 100644 --- a/lib/modules/manager/nuget/artifacts.ts +++ b/lib/modules/manager/nuget/artifacts.ts @@ -1,5 +1,5 @@ -import { join } from 'path'; import { quote } from 'shlex'; +import { join } from 'upath'; import { TEMPORARY_ERROR } from '../../../constants/error-messages'; import { logger } from '../../../logger'; import { exec } from '../../../util/exec'; diff --git a/tools/clean-cache.mjs b/tools/clean-cache.mjs index 89d1d1c67928b7560b05feb8721e0c700aef0a38..a3474ad9028d834459d89dbadf352804dc10916d 100644 --- a/tools/clean-cache.mjs +++ b/tools/clean-cache.mjs @@ -1,6 +1,6 @@ import { tmpdir } from 'os'; -import { join } from 'path'; import { remove } from 'fs-extra'; +import { join } from 'upath'; // eslint-disable-next-line @typescript-eslint/no-floating-promises (async () => {