diff --git a/coral/.eslintrc.cjs b/coral/.eslintrc.cjs index 9c764e880f..0b5e2e976d 100644 --- a/coral/.eslintrc.cjs +++ b/coral/.eslintrc.cjs @@ -29,8 +29,7 @@ module.exports = { }, "rules": { "no-relative-import-paths/no-relative-import-paths": [ - "warn", - { "allowSameFolder": true, "rootDir": "src" } + "error" ] } } diff --git a/coral/src/main.tsx b/coral/src/main.tsx index e9e17d0e29..0ebc3bb80c 100644 --- a/coral/src/main.tsx +++ b/coral/src/main.tsx @@ -1,7 +1,7 @@ import React from "react"; import ReactDOM from "react-dom/client"; import { RouterProvider } from "react-router-dom"; -import router from "./router"; +import router from "src/router"; import "@aivenio/design-system/dist/styles.css"; diff --git a/coral/src/pages/hello/index.test.tsx b/coral/src/pages/hello/index.test.tsx index cd395dc5ae..fa186012f1 100644 --- a/coral/src/pages/hello/index.test.tsx +++ b/coral/src/pages/hello/index.test.tsx @@ -1,4 +1,4 @@ -import HelloPage from "./index"; +import HelloPage from "src/pages/hello/index"; import { render, cleanup, screen } from "@testing-library/react"; describe("HelloPage", () => { diff --git a/coral/src/pages/index.test.tsx b/coral/src/pages/index.test.tsx index d5f03d5b18..d02545cc2b 100644 --- a/coral/src/pages/index.test.tsx +++ b/coral/src/pages/index.test.tsx @@ -1,4 +1,4 @@ -import HomePage from "./index"; +import HomePage from "src/pages/index"; import { render, cleanup, screen } from "@testing-library/react"; describe("HomePage", () => { diff --git a/coral/src/router.tsx b/coral/src/router.tsx index 998a501d38..c5a3ecc9c0 100644 --- a/coral/src/router.tsx +++ b/coral/src/router.tsx @@ -1,6 +1,6 @@ import { createBrowserRouter, Navigate, RouteObject } from "react-router-dom"; -import HomePage from "./pages/index"; -import HelloPage from "./pages/hello"; +import HomePage from "src/pages/index"; +import HelloPage from "src/pages/hello"; const routes: Array = [ {