Skip to content

Commit

Permalink
refactor(jsconfig): replace all module aliases with '@/*'
Browse files Browse the repository at this point in the history
  • Loading branch information
yunger7 committed Jun 25, 2022
1 parent 040276b commit 914a6e0
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 19 deletions.
11 changes: 1 addition & 10 deletions jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@components": ["src/components"],
"@components/*": ["src/components/*"],
"@hooks": ["src/hooks"],
"@hooks/*": ["src/hooks/*"],
"@utils": ["src/utils"],
"@utils/*": ["src/utils/*"],
"@styles": ["src/styles"],
"@styles/*": ["src/styles/*"],
"@lib": ["src/lib"],
"@lib/*": ["src/lib/*"]
"@/*": ["src/*"]
}
}
}
2 changes: 1 addition & 1 deletion src/components/GradientBackground.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ParallaxBanner } from "react-scroll-parallax";
import { Box, createStyles } from "@mantine/core";

import { gradientBackgroundAnimation } from "@styles";
import { gradientBackgroundAnimation } from "@/styles";

const backgroundColors = ["#5E81AC", "#81A1C1", "#88C0D0", "#8FBCBB"];

Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
import { useDisclosure } from "@mantine/hooks";
import { NextLink } from "@mantine/next";

import { useDiscordTag } from "@hooks";
import { SOCIAL } from "@utils";
import { useDiscordTag } from "@/hooks";
import { SOCIAL } from "@/utils";

import Logo from "public/logo.png";
import { social, username } from "website.config";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Skill.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Center, createStyles, useMantineTheme } from "@mantine/core";

import { floatingAnimation } from "@styles";
import { floatingAnimation } from "@/styles";

const useStyles = createStyles({
small: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
BrandVisualStudio as VscodeIcon,
} from "tabler-icons-react";

import { Skill } from "@components";
import { Skill } from "@/components";

const useStyles = createStyles(theme => ({
react: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "@mantine/core";
import { useOs } from "@mantine/hooks";

import { WaveBackground, GlassCard, WaveDivider } from "@components";
import { WaveBackground, GlassCard, WaveDivider } from "@/components";

import { username, technologies } from "website.config";

Expand Down
7 changes: 4 additions & 3 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useMantineColorScheme } from "@mantine/core";

import { fetchGithubInfo, formatCommits } from "@lib";
import { fetchGithubInfo, formatCommits } from "@/lib";

import { Header } from "@components";
import { Home, About } from "@components/sections";
import { Header } from "@/components";
import { Home, About, Projects } from "@/components/sections";

import { about, firstCommitDate, location, bio } from "website.config";

Expand All @@ -15,6 +15,7 @@ export default function LandingPage({ bio, about }) {
<Header />
<Home bio={bio} />
<About content={about} />
<Projects />
</>
);
}
Expand Down

0 comments on commit 914a6e0

Please sign in to comment.