Bumped vite, eslint, typescript, prettier and related plugins versions to latest (#623)

* Bumped vite, eslint, typescript, prettier and related plugins

* Fixed unused arg

* Fixed prettier warnings
This commit is contained in:
yuri-sakharov
2025-11-22 08:31:28 +02:00
committed by GitHub
parent 40161aee12
commit 210a371d06
32 changed files with 3837 additions and 3287 deletions

View File

@@ -143,7 +143,7 @@ class ApiService {
}: {
queryKey: [
string,
{ namespace: string; chart: { name: string }; version: number }
{ namespace: string; chart: { name: string }; version: number },
];
}) => {
const [, params] = queryKey;

View File

@@ -14,7 +14,7 @@
* @see https://storybook.js.org/docs/react/writing-stories/introduction
*/
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import Badge from "./Badge";
// We set the metadata for the story.

View File

@@ -1,4 +1,4 @@
import { Meta, StoryObj } from "@storybook/react";
import { Meta, StoryObj } from "@storybook/react-vite";
import Button from "./Button";
const meta = {

View File

@@ -1,4 +1,4 @@
import { Meta, StoryObj } from "@storybook/react";
import { Meta, StoryObj } from "@storybook/react-vite";
import ClustersList from "./ClustersList";
const meta = {

View File

@@ -11,10 +11,9 @@ const HealthStatus = ({ statusData }: Props) => {
return item.status?.conditions
?.filter((cond) => cond.type === HD_RESOURCE_CONDITION_TYPE)
.map((cond) => {
const stableKey =
item.metadata?.uid
? `${item.metadata.uid}-${item.metadata.namespace ?? "default"}`
: `${item.kind}-${item.metadata?.namespace ?? "default"}-${item.metadata?.name}`;
const stableKey = item.metadata?.uid
? `${item.metadata.uid}-${item.metadata.namespace ?? "default"}`
: `${item.kind}-${item.metadata?.namespace ?? "default"}-${item.metadata?.name}`;
return (
<Tooltip
@@ -26,20 +25,20 @@ const HealthStatus = ({ statusData }: Props) => {
cond.status === "Healthy"
? "bg-success"
: cond.status === "Progressing"
? "bg-warning"
: "bg-danger"
? "bg-warning"
: "bg-danger"
} w-2.5 h-2.5 rounded-sm`}
></span>
</Tooltip>
);
});
});
if (statuses.length === 0) {
return <div>No health statuses available</div>;
}
return <div className="flex flex-wrap gap-1">{statuses}</div>;
};
export default HealthStatus;
export default HealthStatus;

View File

@@ -1,4 +1,4 @@
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import InstalledPackageCard from "./InstalledPackageCard";
const meta = {

View File

@@ -1,4 +1,4 @@
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import InstalledPackagesHeader from "./InstalledPackagesHeader";
const meta = {

View File

@@ -1,4 +1,4 @@
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import InstalledPackagesList from "./InstalledPackagesList";
const meta = {

View File

@@ -6,7 +6,7 @@
* The default story renders the component with the default props.
*/
import { Meta, StoryObj } from "@storybook/react";
import { Meta, StoryObj } from "@storybook/react-vite";
import { action } from "@storybook/addon-actions";
import SelectMenu, { SelectMenuItem } from "./SelectMenu";

View File

@@ -1,4 +1,4 @@
import { StoryFn, Meta } from "@storybook/react";
import { StoryFn, Meta } from "@storybook/react-vite";
import ShutDownButton from "./ShutDownButton";
const meta = {

View File

@@ -1,4 +1,4 @@
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import Tabs from "./Tabs";
const meta = {

View File

@@ -1,4 +1,4 @@
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import TabsBar from "./TabsBar";
const meta = {

View File

@@ -4,7 +4,7 @@
* the first story simply renders the component with the default props.
*/
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import TextInput from "./TextInput";
const meta = {

View File

@@ -1,4 +1,4 @@
import { Meta, StoryFn } from "@storybook/react";
import { Meta, StoryFn } from "@storybook/react-vite";
import { Troubleshoot } from "./Troubleshoot";
const meta = {

View File

@@ -1,4 +1,4 @@
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import { Button } from "./Button";

View File

@@ -1,4 +1,4 @@
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import { action } from "@storybook/addon-actions";
import DropDown from "./DropDown";
import { BsSlack, BsGithub } from "react-icons/bs";

View File

@@ -1,4 +1,4 @@
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import { Header } from "./Header";

View File

@@ -1,4 +1,4 @@
import { Meta, StoryObj } from "@storybook/react";
import { Meta, StoryObj } from "@storybook/react-vite";
import { within, userEvent } from "@storybook/testing-library";
import { Page } from "./Page";

View File

@@ -1,4 +1,4 @@
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import StatusLabel, { DeploymentStatus } from "./StatusLabel";
const meta = {

View File

@@ -1,4 +1,4 @@
import { StoryFn, Meta } from "@storybook/react";
import { StoryFn, Meta } from "@storybook/react-vite";
import AddRepositoryModal from "./AddRepositoryModal";
const meta = {

View File

@@ -1,5 +1,5 @@
import { action } from "@storybook/addon-actions";
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import ErrorModal from "./ErrorModal";
const meta = {

View File

@@ -1,5 +1,5 @@
import { action } from "@storybook/addon-actions";
import { StoryObj, StoryFn, Meta } from "@storybook/react";
import { StoryObj, StoryFn, Meta } from "@storybook/react-vite";
import Modal, { ModalAction, ModalButtonStyle } from "./Modal";
const meta = {

View File

@@ -1,4 +1,4 @@
import { Meta } from "@storybook/react";
import { Meta } from "@storybook/react-vite";
import ChartViewer from "./ChartViewer";
//👇 This default export determines where your story goes in the story list

View File

@@ -1,4 +1,4 @@
import { StoryFn, Meta } from "@storybook/react";
import { StoryFn, Meta } from "@storybook/react-vite";
import RepositoriesList from "./RepositoriesList";
const meta = {
@@ -17,7 +17,6 @@ const Template: StoryFn<typeof RepositoriesList> = () => (
<RepositoriesList
selectedRepository={undefined}
// in this case we allow Unexpected empty method
//eslint-disable-next-line @typescript-eslint/no-empty-function
onRepositoryChanged={() => {}}
repositories={[]}
/>

View File

@@ -1,4 +1,4 @@
import { StoryFn, Meta } from "@storybook/react";
import { StoryFn, Meta } from "@storybook/react-vite";
import RepositoryViewer from "./RepositoryViewer";
const meta = {

View File

@@ -12,6 +12,5 @@ export const ErrorModalContext = createContext<{
}>({
shouldShowErrorModal: undefined,
// in this case we allow Unexpected empty method
//eslint-disable-next-line @typescript-eslint/no-empty-function
setShowErrorModal: (toggle?: ErrorAlert) => {},
setShowErrorModal: () => {},
});

View File

@@ -66,7 +66,7 @@ export type ReleaseHealthStatus = {
lastProbeTime: string;
lastTransitionTime?: string;
reason: string;
}
},
];
};
};