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.5.0 #31349

Merged
merged 2 commits into from
Sep 16, 2024
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
2 changes: 1 addition & 1 deletion lib/config/presets/gitea/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function getPresetFromEndpoint(
filePreset: string,
presetPath?: string,
endpoint = Endpoint,
tag?: string | undefined,
tag?: string,
): Promise<Preset | undefined> {
return fetchPreset({
repo,
Expand Down
4 changes: 2 additions & 2 deletions lib/config/presets/github/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function fetchJSONFile(
repo: string,
fileName: string,
endpoint: string,
tag?: string | undefined,
tag?: string,
): Promise<Preset> {
let ref = '';
if (is.nonEmptyString(tag)) {
Expand Down Expand Up @@ -42,7 +42,7 @@ export function getPresetFromEndpoint(
filePreset: string,
presetPath?: string,
endpoint = Endpoint,
tag?: string | undefined,
tag?: string,
): Promise<Preset | undefined> {
return fetchPreset({
repo,
Expand Down
4 changes: 2 additions & 2 deletions lib/config/presets/gitlab/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function fetchJSONFile(
repo: string,
fileName: string,
endpoint: string,
tag?: string | undefined,
tag?: string,
): Promise<Preset> {
let url = endpoint;
let ref = '';
Expand Down Expand Up @@ -60,7 +60,7 @@ export function getPresetFromEndpoint(
presetName: string,
presetPath?: string,
endpoint = Endpoint,
tag?: string | undefined,
tag?: string,
): Promise<Preset | undefined> {
return fetchPreset({
repo,
Expand Down
4 changes: 2 additions & 2 deletions lib/config/presets/local/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function fetchJSONFile(
repo: string,
fileName: string,
_endpoint?: string,
tag?: string | undefined,
tag?: string,
): Promise<Preset> {
let raw: string | null;
try {
Expand Down Expand Up @@ -37,7 +37,7 @@ export function getPresetFromEndpoint(
filePreset: string,
presetPath: string | undefined,
endpoint: string,
tag?: string | undefined,
tag?: string,
): Promise<Preset | undefined> {
return fetchPreset({
repo,
Expand Down
2 changes: 1 addition & 1 deletion lib/config/presets/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type PresetFetcher = (
repo: string,
fileName: string,
endpoint: string,
tag?: string | undefined,
tag?: string,
) => Promise<Preset | null | undefined>;

export type FetchPresetConfig = {
Expand Down
4 changes: 2 additions & 2 deletions lib/modules/manager/kustomize/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function extractResource(base: string): PackageDependency | null {

export function extractImage(
image: Image,
aliases?: Record<string, string> | undefined,
aliases?: Record<string, string>,
): PackageDependency | null {
if (!image.name) {
return null;
Expand Down Expand Up @@ -141,7 +141,7 @@ export function extractImage(

export function extractHelmChart(
helmChart: HelmChart,
aliases?: Record<string, string> | undefined,
aliases?: Record<string, string>,
): PackageDependency | null {
if (!helmChart.name) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/manager/vendir/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Vendir } from './schema';

export function extractHelmChart(
helmChart: HelmChartDefinition,
aliases?: Record<string, string> | undefined,
aliases?: Record<string, string>,
): PackageDependency | null {
if (isOCIRegistry(helmChart.repository.url)) {
const dep = getDep(
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/versioning/nuget/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const supportsRanges = true;
export const supportedRangeStrategies = ['pin', 'bump'];

class NugetVersioningApi implements VersioningApi {
isCompatible(version: string, _current?: string | undefined): boolean {
isCompatible(version: string, _current?: string): boolean {
return this.isValid(version);
}

Expand Down
4 changes: 2 additions & 2 deletions lib/util/exec/common.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function getReadable(
/*do nothing*/
};

readable.destroy = (error?: Error | undefined): Readable => {
readable.destroy = (error?: Error): Readable => {
return readable;
};

Expand Down Expand Up @@ -116,7 +116,7 @@ function getSpawnStub(args: StubArgs): any {
/* do nothing*/
};

const kill = (signal?: number | NodeJS.Signals | undefined): boolean => {
const kill = (signal?: number | NodeJS.Signals): boolean => {
/* do nothing*/
return true;
};
Expand Down
2 changes: 1 addition & 1 deletion lib/util/exec/docker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export async function getDockerTag(
return 'latest';
}

function getContainerName(image: string, prefix?: string | undefined): string {
function getContainerName(image: string, prefix?: string): string {
return `${prefix ?? 'renovate_'}${image}`.replace(regEx(/\//g), '_');
}

Expand Down
2 changes: 1 addition & 1 deletion lib/util/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const regexEngineStatus = status;

export function regEx(
pattern: string | RegExp,
flags?: string | undefined,
flags?: string,
useCache = true,
): RegExp {
let canBeCached = useCache;
Expand Down
1 change: 0 additions & 1 deletion lib/util/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,6 @@ export class AsyncResult<T extends Val, E extends Val>
then<TResult1 = Result<T, E>>(
onfulfilled?:
| ((value: Result<T, E>) => TResult1 | PromiseLike<TResult1>)
| undefined
| null,
): PromiseLike<TResult1> {
return this.asyncResult.then(onfulfilled);
Expand Down
2 changes: 1 addition & 1 deletion lib/util/yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function parseSingleYaml<ResT = unknown>(
return schema.parse(rawDocument);
}

export function dump(obj: any, opts?: DumpOptions | undefined): string {
export function dump(obj: any, opts?: DumpOptions): string {
return upstreamDump(obj, opts);
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,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.4.0",
"@typescript-eslint/parser": "8.4.0",
"@typescript-eslint/eslint-plugin": "8.5.0",
"@typescript-eslint/parser": "8.5.0",
"aws-sdk-client-mock": "4.0.1",
"callsite": "1.0.0",
"common-tags": "1.8.2",
Expand Down
Loading