Update dependency "eslint" to v9.x

v9.39.4
This commit is contained in:
schroda
2026-03-10 10:59:38 +01:00
parent d8673e2307
commit 22e1b6d224
29 changed files with 877 additions and 738 deletions

View File

@@ -180,7 +180,9 @@ const createChangelogCommitLine = (commit: Commit): string => {
const getContributors = (commits: Commit[]): string[] => [
...new Set(
commits
.map((commit) => commit.authors.map((author) => author.user?.login!).filter((author) => !!author))
.map((commit) =>
commit.authors.map((author) => author.user?.login).filter((author): author is string => !!author),
)
.flat(),
),
];

View File

@@ -46,7 +46,6 @@ const extractContributionInfoFromChanges = (
const actions: Record<number, string> = {};
changes.forEach((change) => {
// eslint-disable-next-line @typescript-eslint/naming-convention
const { translation: translationUrl, action, action_name, user: userUrl } = change;
if (userUrl === null) {
return;

View File

@@ -9,9 +9,9 @@
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import dayjs from 'dayjs';
import { validateWeblateDates } from '../weblate/Weblate.utils.ts';
import { createCommitChangelog } from './CommitChangelog.utils.ts';
import { createTranslationChangelog } from './TranslationChangelog.utils.ts';
import { validateWeblateDates } from '../weblate/Weblate.utils.ts';
const { sha, date } = yargs(hideBin(process.argv))
.options({

View File

@@ -8,8 +8,8 @@
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { createTranslationChangelog } from './TranslationChangelog.utils.ts';
import { TRANSLATION_CHANGELOG_YARG_OPTIONS_DEFAULT } from '../weblate/Weblate.constants.ts';
import { createTranslationChangelog } from './TranslationChangelog.utils.ts';
const { afterDate, beforeDate, requiredContributionCount, keepKnownContributors } = yargs(hideBin(process.argv))
.options({