Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mari1912 committed Jul 10, 2024
1 parent 4a5ec52 commit 431b610
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
5 changes: 0 additions & 5 deletions dashboard/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -76,7 +72,6 @@ module.exports = {
"tsx": "never",
},
],
"import/no-cycle": ["error", { ignoreExternal: true }],
"import/no-extraneous-dependencies": [
"error",
{
Expand Down
8 changes: 4 additions & 4 deletions dashboard/src/api/Tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Tree[]> => {
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 });
Expand Down
4 changes: 2 additions & 2 deletions dashboard/src/api/api.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 431b610

Please sign in to comment.