Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update linters to v8.22.0 #33880

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/modules/manager/pip-compile/extract.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import upath from 'upath';
import { logger } from '../../../logger';
import { coerceArray } from '../../../util/array';
import { readLocalFile } from '../../../util/fs';
import { ensureLocalPath } from '../../../util/fs/util';
import { extractPackageFile as extractRequirementsFile } from '../pip_requirements/extract';
Expand Down Expand Up @@ -73,7 +74,7 @@ export async function extractAllPackageFiles(
continue;
}
lockFileArgs.set(fileMatch, compileArgs);
for (const constraint in compileArgs.constraintsFiles) {
for (const constraint of coerceArray(compileArgs.constraintsFiles)) {
depsBetweenFiles.push({
sourceFile: constraint,
outputFile: fileMatch,
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/platform/github/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export async function createFork(
await githubApi.postJson<GhRestRepo>(`repos/${repository}/forks`, {
token,
body: {
organization: forkOrg ? forkOrg : undefined,
organization: forkOrg ?? undefined,
name: config.parentRepo!.replace('/', '-_-'),
default_branch_only: true, // no baseBranches support yet
},
Expand Down
4 changes: 1 addition & 3 deletions lib/modules/versioning/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ export const getVersionings = (): Map<
> => versionings;

export function get(versioning: string | null | undefined): VersioningApi {
const res = Versioning.safeParse(
versioning ? versioning : defaultVersioning.id,
);
const res = Versioning.safeParse(versioning ?? defaultVersioning.id);

if (!res.success) {
const [issue] = res.error.issues;
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/versioning/ubuntu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function isStable(version: string): boolean {

function getVersionByCodename(version: string): string {
const datedImgVersion = getDatedContainerImageCodename(version);
const getVersion = datedImgVersion ? datedImgVersion : version;
const getVersion = datedImgVersion ?? version;
return di.getVersionByCodename(getVersion);
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@
"@types/url-join": "4.0.3",
"@types/validate-npm-package-name": "4.0.2",
"@types/xmldoc": "1.1.9",
"@typescript-eslint/eslint-plugin": "8.20.0",
"@typescript-eslint/parser": "8.20.0",
"@typescript-eslint/eslint-plugin": "8.22.0",
"@typescript-eslint/parser": "8.22.0",
"aws-sdk-client-mock": "4.1.0",
"callsite": "1.0.0",
"common-tags": "1.8.2",
Expand Down
Loading
Loading