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 { QueryClientProvider, QueryClient } from "@tanstack/react-query"
import AxiosMockAdapter from "axios-mock-adapter" import AxiosMockAdapter from "axios-mock-adapter"
import axios from "../../axios" import axios from "../axios"
import { LocationContext } from "../../contexts/LocationContext" import { LocationContext } from "contexts/LocationContext"
import FileListView from "." import FileListView from "."
const routes = { const routes = {

View file

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

View file

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