Skip to content

Commit

Permalink
🚨 Fix ESLint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
loxygenK committed Nov 21, 2021
1 parent d2785ef commit 70ea047
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/api/graphql/autogen
Empty file.
1 change: 0 additions & 1 deletion src/comps/shared/AwaitFetch.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";

import styles from "./AwaitFetch.module.scss";
import { Emoji } from "./Emoji";

export type AwaitFetchProps<T> = {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/about/controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { gql, useQuery } from "@apollo/client";
import { gql, QueryResult, useQuery } from "@apollo/client";
import { Basic, Contact } from "~/api/graphql/autogen/scheme";

const fetchBasic = gql`
Expand All @@ -24,5 +24,5 @@ const fetchBasic = gql`
`;
type FetchIntroductionResponse = { basic: Basic; contacts: Contact[] };

export const useBasicAPI = () =>
export const useBasicAPI = (): QueryResult<FetchIntroductionResponse> =>
useQuery<FetchIntroductionResponse>(fetchBasic);
1 change: 0 additions & 1 deletion src/pages/about/organisms/Introduction.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import { AwaitFetch } from "~/comps/shared/AwaitFetch";
import { SimpleButton } from "~/comps/shared/SimpleButton";
import { Affiliation } from "../atoms/Affiriation";
import { Contact } from "../atoms/Contact";
import { useBasicAPI } from "../controller";
Expand Down
1 change: 0 additions & 1 deletion src/pages/skills/atoms/Skill.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import { SkilledLevel } from "~/api/graphql/autogen/scheme";
import { Emoji } from "~/comps/shared/Emoji";
import { combineClassName } from "~/utils/combineClassName";

import styles from "./Skill.module.scss";

Expand Down
1 change: 0 additions & 1 deletion src/pages/works/atoms/Work.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import { Link } from "react-router-dom";
import { Status, Work as WorkEntity } from "~/api/graphql/autogen/scheme";

import styles from "./Work.module.scss";
Expand Down

0 comments on commit 70ea047

Please # to comment.