diff --git a/.eslintrc.js b/.eslintrc.js index 26daf519eb9412ac5d927c6d52b172dc243a6c51..a94937b17955f7ee75ac1517132030ad0b3e3102 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -97,7 +97,7 @@ module.exports = { { vars: 'all', args: 'none', - ignoreRestSiblings: false, + ignoreRestSiblings: true, }, ], '@typescript-eslint/prefer-optional-chain': 2, diff --git a/lib/modules/platform/bitbucket-server/utils.ts b/lib/modules/platform/bitbucket-server/utils.ts index a39d29be1fcc6b8d34d067ea02d5d47a931316a6..6c98f803149893a2a45e8977278d23fd73197fdb 100644 --- a/lib/modules/platform/bitbucket-server/utils.ts +++ b/lib/modules/platform/bitbucket-server/utils.ts @@ -39,7 +39,7 @@ export function prInfo(pr: BbsRestPr): BbsPr { } const addMaxLength = (inputUrl: string, limit = 100): string => { - const { search, ...parsedUrl } = url.parse(inputUrl, true); // eslint-disable-line @typescript-eslint/no-unused-vars + const { search, ...parsedUrl } = url.parse(inputUrl, true); const maxedUrl = url.format({ ...parsedUrl, query: { ...parsedUrl.query, limit }, @@ -91,7 +91,7 @@ export async function accumulateValues<T = any>( break; } - const { search, ...parsedUrl } = url.parse(nextUrl, true); // eslint-disable-line @typescript-eslint/no-unused-vars + const { search, ...parsedUrl } = url.parse(nextUrl, true); nextUrl = url.format({ ...parsedUrl, query: { diff --git a/lib/modules/platform/bitbucket/utils.ts b/lib/modules/platform/bitbucket/utils.ts index 2685b14e465bb256e68d37d4d6c7aa725ca93b0c..665954772e5e4d8d77ca1bca844406c22a681d7e 100644 --- a/lib/modules/platform/bitbucket/utils.ts +++ b/lib/modules/platform/bitbucket/utils.ts @@ -99,7 +99,7 @@ export const buildStates: Record<BranchStatus, BitbucketBranchState> = { }; const addMaxLength = (inputUrl: string, pagelen = 100): string => { - const { search, ...parsedUrl } = url.parse(inputUrl, true); // eslint-disable-line @typescript-eslint/no-unused-vars + const { search, ...parsedUrl } = url.parse(inputUrl, true); const maxedUrl = url.format({ ...parsedUrl, query: { ...parsedUrl.query, pagelen }, diff --git a/lib/workers/repository/process/extract-update.ts b/lib/workers/repository/process/extract-update.ts index 371c801f01f4c5c4a95b1ff7ddd088289d8eb0ca..2ca6d3344aa023f8d4e339573f5918ade7e52742 100644 --- a/lib/workers/repository/process/extract-update.ts +++ b/lib/workers/repository/process/extract-update.ts @@ -71,7 +71,6 @@ export async function extract( const cache = getCache(); cache.scan ||= {}; const cachedExtract = cache.scan[baseBranch!]; - // eslint-disable-next-line @typescript-eslint/no-unused-vars const { packageRules, ...remainingConfig } = config; // Calculate hash excluding packageRules, because they're not applied during extract const configHash = fingerprint(remainingConfig);