Merge pull request #66 from mcataford/chore/resolve-imports-from-src

chore(frontend): resolve imports from src to avoid harder-to-read relative imports
This commit is contained in:
Marc 2023-12-21 23:49:49 -05:00 committed by GitHub
commit d7472ef107
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"]
}