Skip to content

Commit

Permalink
fix ts issues , disable eslint for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Safouene1 committed Apr 25, 2024
1 parent 96671e5 commit 48f0257
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 56 deletions.
26 changes: 20 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,36 @@
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["react", "react-hooks"],
"plugins": ["react", "react-hooks", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"sourceType": "module"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser"
}
],
"env": {
"browser": true,
"es2020": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/react-in-jsx-scope": "off",
"no-unused-vars": "error"
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"react/prop-types": "off"
}
}
6 changes: 2 additions & 4 deletions src/components/icons.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Boxes } from "lucide-react";

type IconProps = React.HTMLAttributes<SVGElement>;

export const Icons = {
Expand Down Expand Up @@ -68,8 +66,8 @@ export const Icons = {
y2="49.4291"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#326DE6" />
<stop offset="1" stop-color="#10FFC6" />
<stop stopColor="#326DE6" />
<stop offset="1" stopColor="#10FFC6" />
</linearGradient>
</defs>
</svg>
Expand Down
2 changes: 0 additions & 2 deletions src/components/layouts/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { appConfig } from "@/config/app";
import { ModeToggle } from "../mode-toggle";
import { Icons } from "@/components/icons";

export function Footer() {
return (
Expand Down
1 change: 0 additions & 1 deletion src/components/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { appConfig } from "@/config/app";
import { Icons } from "./icons";

export function Logo() {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { Blocks, FileSliders, Upload } from "lucide-react";
import { FileSliders } from "lucide-react";

export const ClusterConfig = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { Blocks, Tags, Upload } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Tags } from "lucide-react";
import { Label } from "@/types/cluster";
import { Badge } from "@/components/ui/badge";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
import {
Blocks,
File,
Home,
LineChart,
ListFilter,
MoreHorizontal,
Package,
Package2,
PanelLeft,
PlusCircle,
Search,
Settings,
ShoppingCart,
Users2,
} from "lucide-react";

import { Badge } from "@/components/ui/badge";
Expand All @@ -35,8 +26,7 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { Input } from "@/components/ui/input";
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";

import {
Table,
TableBody,
Expand All @@ -46,11 +36,6 @@ import {
TableRow,
} from "@/components/ui/table";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";

export function ResourceTable() {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Button } from "@/components/ui/button";
import { CheckCircle, ChevronLeft, RefreshCcw, XCircle } from "lucide-react";
import { ChevronLeft, RefreshCcw, XCircle } from "lucide-react";
import { Badge } from "@/components/ui/badge";
import { useNavigate } from "react-router-dom";
import { Icons } from "@/components/icons";
import { EnvelopeOpenIcon } from "@radix-ui/react-icons";

type ClusterHeadingProps = {
name: string;
Expand Down
15 changes: 2 additions & 13 deletions src/modules/clusters/clusters-list/ClustersPage.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
import {
Pagination,
PaginationContent,
PaginationEllipsis,
PaginationItem,
PaginationLink,
PaginationNext,
PaginationPrevious,
} from "@/components/ui/pagination";
import { ClusterCard } from "@/modules/clusters/clusters-list/components/ClusterCard";
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { PageHeading } from "@/components/ui/PageHeading";
import { appConfig, clusterType } from "@/config/app";
import { useNavigate, useParams } from "react-router-dom";
import { useEffect, useState } from "react";
import { ResourceTable } from "@/modules/clusters/cluster-information/components/ResourceTable";
import { useState } from "react";

import { ClusterList } from "@/modules/clusters/clusters-list/components/ClusterList";

export default function ClustersPage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface ClusterCardProps {
name: string;
version: string;
namespace: string;
status: Boolean;
status: boolean;
labels: {
designation: string;
color: string;
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from "path";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import eslintPlugin from "vite-plugin-eslint";


const basenameProd = "/";

Expand Down

0 comments on commit 48f0257

Please sign in to comment.