Skip to content

Commit

Permalink
Merge pull request #5572 from surajgjadhav/fix/surajgjadhav/5570
Browse files Browse the repository at this point in the history
fix(5570): ESLint version rollback with some linting fix
  • Loading branch information
iArchitSharma authored Jun 12, 2024
2 parents d03e5fd + 7182974 commit dc46c4e
Show file tree
Hide file tree
Showing 10 changed files with 174 additions and 205 deletions.
338 changes: 163 additions & 175 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@
"cpx": "^1.5.0",
"cross-env": "^7.0.0",
"env-cmd": "^10.1.0",
"eslint": "^9.4.0",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.2",
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.30",
"gh-pages": "^6.1.1",
"husky": "^8.0.3",
Expand Down
14 changes: 1 addition & 13 deletions src/components/specs/data-card.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import React, { useState, useEffect } from "react";
import React from "react";
import styled from "styled-components";
import LifeCycleIcon from "./images/lifecycle-icon.svg";
import PerformanceIcon from "./images/performance-icon.svg";
import ConfigurationIcon from "./images/configuration-icon.svg";
import { Col, Row } from "../../reusecore/Layout";
import Counter from "../../reusecore/Counter";
import { URL } from "../../sections/Counters/index";
import List_Icon from "../../assets/images/app/tick.svg";

const DataCardWrapper = styled.div`
Expand Down Expand Up @@ -47,13 +42,6 @@ const DataCardWrapper = styled.div`
`;

const DataCard = () => {
const [performanceCount, setPerformanceCount] = useState(0);

useEffect(() => {
fetch(URL)
.then((response) => response.json())
.then((result) => setPerformanceCount(result.total_runs));
}, []);

return (
<DataCardWrapper>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import loadable from "@loadable/component";
import CornerPopup from "../components/Corner-popup";
const CloudNativeManagement = loadable(() => import("../sections/Home/CloudNativeManagement"));
const SubscribeSection = loadable(() => import("../sections/subscribe/subscribe"));
const ServiceMeshFocussed = loadable(() => import("../sections/Home/Service-mesh-focussed"));
// const ServiceMeshFocussed = loadable(() => import("../sections/Home/Service-mesh-focussed"));
import CaseStudyBanner from "../components/Case-study-banner";

const EngineerEnabler = loadable(() => import("../sections/Home/Engineer-enabler"));
const SoSpecial = loadable(() => import("../sections/Home/So-Special-Section"));
// const EngineerEnabler = loadable(() => import("../sections/Home/Engineer-enabler"));
// const SoSpecial = loadable(() => import("../sections/Home/So-Special-Section"));
const MesheryIntegration = loadable(() => import("../sections/Meshery/Meshery-integrations"));
const FeaturesContainer = loadable(() => import("../sections/Home/FeaturesContainer"));

Expand Down
2 changes: 0 additions & 2 deletions src/sections/CloudNativeDeployments/features.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from "react";
import styled from "styled-components";
import { StaticImage } from "gatsby-plugin-image";
import { Link } from "gatsby";
const docker_ext = "../../assets/images/docker-extension/docker-extension-meshery.webp";
import meshery_visualizer from "./images/meshery_visualizer.svg";
import meshery_designer from "./images/meshery_designer.svg";
import CatalogsLight from "../../assets/images/catalog/catalog-light.svg";
Expand Down
4 changes: 0 additions & 4 deletions src/sections/Developer-Infrastructure/features.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import React from "react";
import styled from "styled-components";
import { StaticImage } from "gatsby-plugin-image";
import { Link } from "gatsby";
import orchestration_svg from "./images/orchestration.svg";
import whiteboard from "./images/whiteboard-1e9f33293030bc98a01945af9740863f.png";
import { Container, Row, Col } from "../../reusecore/Layout";
import { useStyledDarkMode } from "../../theme/app/useStyledDarkMode";

const FeatureWrapper = styled.div`
min-height: fit-content;
Expand Down Expand Up @@ -123,8 +121,6 @@ const FeatureWrapper = styled.div`

const Feature = () => {

const { isDark } = useStyledDarkMode();

return (
<FeatureWrapper>
<Container className="catalog-container">
Expand Down
4 changes: 2 additions & 2 deletions src/sections/Home/So-Special-Section/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import SoSpecialWrapper from "./so-special-style";
import Button from "../../../reusecore/Button";
import { graphql, useStaticQuery } from "gatsby";
import Image from "../../../components/image";
import { useStyledDarkMode } from "../../../theme/app/useStyledDarkMode";
// import { useStyledDarkMode } from "../../../theme/app/useStyledDarkMode";

const SoSpecial = () => {
const data = useStaticQuery(
Expand Down Expand Up @@ -98,7 +98,7 @@ const SoSpecial = () => {
]
};

const { isDark } = useStyledDarkMode();
// const { isDark } = useStyledDarkMode();

return (
<SoSpecialWrapper>
Expand Down
4 changes: 2 additions & 2 deletions src/sections/Meshery/How-meshery-works/specs/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { Container, Col, Row } from "../../../../reusecore/Layout";
import MesheryImage1 from "../images/cloud-native-journey.webp";
import MesheryImage2 from "../images/meshery-configuration-management.webp";
// import MesheryImage1 from "../images/cloud-native-journey.webp";
// import MesheryImage2 from "../images/meshery-configuration-management.webp";
import GreenBubble from "../images/green-bubble.svg";
import YellowBubble from "../images/yellow-bubble.svg";
import DataCard from "./data-card";
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Projects/Sistent/about.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useSyncExternalStore } from "react";
import React from "react";
import { Container } from "../../../reusecore/Layout";
import SistentWrapper from "./sistent.style";
import TOC from "../../../components/SistentNavigation";
Expand Down
2 changes: 0 additions & 2 deletions src/sections/kubernetes-multi-cluster/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const docker_ext = "../../assets/images/docker-extension/docker-extension-mesher
import meshery_operator from "../../assets/images/meshery-operator/meshery-operator-dark.svg";
import meshsync from "./images/meshsync.svg";
import { Container, Row, Col } from "../../reusecore/Layout";
import { useStyledDarkMode } from "../../theme/app/useStyledDarkMode";

const FeatureWrapper = styled.div`
min-height: fit-content;
Expand Down Expand Up @@ -127,7 +126,6 @@ const FeatureWrapper = styled.div`

const Feature = () => {

const { isDark } = useStyledDarkMode();

return (
<FeatureWrapper>
Expand Down

0 comments on commit dc46c4e

Please sign in to comment.