diff --git a/dashboard/.eslintrc.cjs b/dashboard/.eslintrc.cjs index ddd8bd2..5a4054d 100644 --- a/dashboard/.eslintrc.cjs +++ b/dashboard/.eslintrc.cjs @@ -50,10 +50,6 @@ module.exports = { "no-underscore-dangle": ["error", { allow: ["__typename"] }], "no-unused-vars": "off", "no-use-before-define": "off", - "react-refresh/only-export-components": [ - "warn", - { allowConstantExport: true }, - ], "@typescript-eslint/prefer-optional-chain": "warn", "@typescript-eslint/explicit-function-return-type": "warn", "@typescript-eslint/no-empty-function": "off", @@ -76,7 +72,6 @@ module.exports = { "tsx": "never", }, ], - "import/no-cycle": ["error", { ignoreExternal: true }], "import/no-extraneous-dependencies": [ "error", { diff --git a/dashboard/src/api/Tree.tsx b/dashboard/src/api/Tree.tsx index e1ddf41..f9fa1eb 100644 --- a/dashboard/src/api/Tree.tsx +++ b/dashboard/src/api/Tree.tsx @@ -2,12 +2,12 @@ import { useQuery, UseQueryResult } from '@tanstack/react-query'; import type { Tree } from '../types/tree/Tree'; -import http from "./api" +import http from './api'; const fetchTreeCheckoutData = async (): Promise => { - const res = await http.get('/api/tree/'); - return res.data; -} + const res = await http.get('/api/tree/'); + return res.data; +}; export const useTreeTable = (): UseQueryResult => { return useQuery({ queryKey: ['treeData'], queryFn: fetchTreeCheckoutData }); diff --git a/dashboard/src/api/api.ts b/dashboard/src/api/api.ts index 3703ae0..9e19b54 100644 --- a/dashboard/src/api/api.ts +++ b/dashboard/src/api/api.ts @@ -1,6 +1,6 @@ -import axios from "axios" +import axios from 'axios'; -const API_BASE_URL = import.meta.env.VITE_API_BASE_URL +const API_BASE_URL = import.meta.env.VITE_API_BASE_URL; export default axios.create({ baseURL: API_BASE_URL,