chore(frontend): resolve imports from src to avoid harder-to-read relative imports #66

Merged
mcataford merged 1 commit from chore/resolve-imports-from-src into main 2023-12-22 04:49:50 +00:00
3 changed files with 10 additions and 8 deletions

View file

@ -2,8 +2,8 @@ import { render, screen, waitFor } from "@testing-library/react"
import { QueryClientProvider, QueryClient } from "@tanstack/react-query"
import AxiosMockAdapter from "axios-mock-adapter"
import axios from "../../axios"
import { LocationContext } from "../../contexts/LocationContext"
import axios from "../axios"
import { LocationContext } from "contexts/LocationContext"
import FileListView from "."
const routes = {

View file

@ -2,10 +2,10 @@ import React from "react"
import Box from "@mui/material/Box"
import FileList from "../FileList"
import FileDetails from "../FileDetails"
import { useOwnFileList } from "../../hooks/files"
import { useLocationContext } from "../../contexts/LocationContext"
import FileList from "components/FileList"
import FileDetails from "components/FileDetails"
import { useOwnFileList } from "hooks/files"
import { useLocationContext } from "contexts/LocationContext"
function FileListView() {
const { isLoading, data } = useOwnFileList()

View file

@ -3,7 +3,8 @@
"target": "ESNext",
"jsx": "react-jsx",
"module": "commonjs",
"rootDir": ".",
"baseUrl": "./src",
"rootDir": "./src",
"moduleResolution": "node",
"allowJs": false,
"esModuleInterop": true,
@ -12,5 +13,6 @@
"noImplicitAny": true,
"skipLibCheck": true,
"types": ["jest"]
}
},
"include": ["src"]
}