Introduced tsconfig.app.json and tsconfig.base.json + Refactored eslint.config.js to the latest structure (#652)

* Introduced tsconfig.app.json and tsconfig.base.json

* yarn.lock

* Introduced tsconfig.app.json, tsconfig.base.jsonfig.

* Refactored eslint.config.js to latest structure

* Returned previous recommended rules.

* More rules

* Force import rules

* Check

* Check

* Cleanup ESLint configuration and plugins

* Cleanup heap: "writable",DD_RUM: "writable" from ESLint configuration

* "scripts" moved to the top of package.json
This commit is contained in:
yuri-sakharov
2026-02-15 19:41:04 +02:00
committed by GitHub
parent 939dd8ac0c
commit c9b8fb7809
79 changed files with 1586 additions and 1887 deletions
@@ -1,6 +1,6 @@
import { useEffect, useRef, useState } from "react";
import { type UseQueryResult, useMutation } from "@tanstack/react-query";
import { Diff2HtmlUI } from "diff2html/lib/ui/js/diff2html-ui-slim.js";
import { useEffect, useRef, useState } from "react";
import {
BsPencil,
BsTrash3,
@@ -9,9 +9,9 @@ import {
BsArrowUp,
BsCheckCircle,
} from "react-icons/bs";
import type { ReleaseRevision } from "../../data/types";
import StatusLabel, { DeploymentStatus } from "../common/StatusLabel";
import { useNavigate, useParams, useSearchParams } from "react-router";
import apiService from "../../API/apiService";
import {
useGetReleaseInfoByType,
useGetLatestVersion,
@@ -19,19 +19,18 @@ import {
useRollbackRelease,
useTestRelease,
} from "../../API/releases";
import RevisionDiff from "./RevisionDiff";
import RevisionResource from "./RevisionResource";
import Tabs from "../Tabs";
import { type UseQueryResult, useMutation } from "@tanstack/react-query";
import type { ReleaseRevision } from "../../data/types";
import useAlertError from "../../hooks/useAlertError";
import useNavigateWithSearchParams from "../../hooks/useNavigateWithSearchParams";
import { diffConfiguration, isNewerVersion } from "../../utils";
import Button from "../Button";
import StatusLabel, { DeploymentStatus } from "../common/StatusLabel";
import { InstallReleaseChartModal } from "../modal/InstallChartModal/InstallReleaseChartModal";
import Modal, { ModalButtonStyle } from "../modal/Modal";
import Spinner from "../Spinner";
import useAlertError from "../../hooks/useAlertError";
import Button from "../Button";
import { InstallReleaseChartModal } from "../modal/InstallChartModal/InstallReleaseChartModal";
import { diffConfiguration, isNewerVersion } from "../../utils";
import useNavigateWithSearchParams from "../../hooks/useNavigateWithSearchParams";
import apiService from "../../API/apiService";
import Tabs from "../Tabs";
import RevisionDiff from "./RevisionDiff";
import RevisionResource from "./RevisionResource";
type RevisionTagProps = {
caption: string;
@@ -1,14 +1,14 @@
import type { ChangeEvent } from "react";
import { useMemo, useState, useRef, useEffect } from "react";
import { Diff2HtmlUI } from "diff2html/lib/ui/js/diff2html-ui-slim.js";
import { useGetReleaseInfoByType } from "../../API/releases";
import { useParams } from "react-router";
import useCustomSearchParams from "../../hooks/useCustomSearchParams";
import parse from "html-react-parser";
import hljs from "highlight.js/lib/core";
import yaml from "highlight.js/lib/languages/yaml";
import Spinner from "../Spinner";
import parse from "html-react-parser";
import { type ChangeEvent, useMemo, useState, useRef, useEffect } from "react";
import { useParams } from "react-router";
import { useGetReleaseInfoByType } from "../../API/releases";
import useCustomSearchParams from "../../hooks/useCustomSearchParams";
import { diffConfiguration } from "../../utils";
import Spinner from "../Spinner";
hljs.registerLanguage("yaml", yaml);
@@ -39,7 +39,7 @@ function RevisionDiff({
"user-defined": userDefinedValue,
} = searchParams;
//@ts-ignore
//@ts-expect-error useRef need to find elegant way for it
const diffElement = useRef<HTMLElement>({});
const handleChanged = (e: ChangeEvent<HTMLInputElement>) => {
@@ -136,7 +136,7 @@ function RevisionDiff({
return (
<div>
<div className="mb-3 flex w-full flex-row items-center justify-between rounded-sm border border-gray-200 border-revision bg-white p-2">
<div className="mb-3 flex w-full flex-row items-center justify-between rounded-sm border border-revision bg-white p-2">
<div className="flex items-center">
<input
checked={viewMode === "view"}
@@ -226,7 +226,7 @@ function RevisionDiff({
)}
<div
className="relative w-full bg-white font-sf-mono leading-5"
//@ts-ignore
//@ts-expect-error ref
ref={diffElement}
></div>
</div>
@@ -1,18 +1,21 @@
import { useMemo, useState } from "react";
import { useParams } from "react-router";
import hljs from "highlight.js/lib/core";
import yaml from "highlight.js/lib/languages/yaml";
import { useMemo, useState } from "react";
import { RiExternalLinkLine } from "react-icons/ri";
import Drawer from "react-modern-drawer";
import { useParams } from "react-router";
import type { StructuredResources } from "../../API/releases";
import { useGetResourceDescription, useGetResources } from "../../API/releases";
import {
type StructuredResources,
useGetResourceDescription,
useGetResources,
} from "../../API/releases";
import closeIcon from "../../assets/close.png";
import Drawer from "react-modern-drawer";
import "react-modern-drawer/dist/index.css";
import Button from "../Button";
import Badge, { getBadgeType } from "../Badge";
import Button from "../Button";
import Spinner from "../Spinner";
import { Troubleshoot } from "../Troubleshoot";
@@ -1,12 +1,12 @@
import { compare } from "compare-versions";
import { DateTime } from "luxon";
import { BsArrowDownRight, BsArrowUpRight } from "react-icons/bs";
import { useParams } from "react-router";
import { compare } from "compare-versions";
import type { ReleaseRevision } from "../../data/types";
import useNavigateWithSearchParams from "../../hooks/useNavigateWithSearchParams";
import { getAge } from "../../timeUtils";
import StatusLabel from "../common/StatusLabel";
import useNavigateWithSearchParams from "../../hooks/useNavigateWithSearchParams";
import { DateTime } from "luxon";
type RevisionsListProps = {
releaseRevisions: ReleaseRevision[];