diff --git a/.eslintrc.json b/.eslintrc.json index 01e2e60..29c096c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -33,9 +33,9 @@ "error", { "allowSameFolder": true } ], - "@typescript-eslint/no-unused-vars": "off", "unused-imports/no-unused-imports": "error", "simple-import-sort/imports": "error", - "simple-import-sort/exports": "error" + "simple-import-sort/exports": "error", + "@typescript-eslint/consistent-type-imports": "error" } } diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100644 new mode 100755 diff --git a/package.json b/package.json index ae6f019..55cb83a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint --cache", + "lint": "next lint", + "lint:fix": "next lint --fix --dir \"./src\"", "format": "prettier --cache --write \"./src/**/*.{ts,tsx,js,jsx}\"", "prepare": "husky install", "test": "jest --coverage", @@ -46,7 +47,7 @@ "eslint-plugin-unused-imports": "^3.0.0", "jest": "^29.6.1", "jest-environment-jsdom": "^29.6.1", - "husky": "^8.0.3", + "husky": "^8.0.3", "lint-staged": "^13.2.3", "typescript": "^4.9.5" }, diff --git a/src/components/common/layout/body/index.tsx b/src/components/common/layout/body/index.tsx new file mode 100644 index 0000000..994e53d --- /dev/null +++ b/src/components/common/layout/body/index.tsx @@ -0,0 +1,7 @@ +import { type FC, type PropsWithChildren } from "react"; + +const Body: FC = ({ children }) => { + return
{children}
; +}; + +export default Body; diff --git a/src/components/common/layout/footer/index.tsx b/src/components/common/layout/footer/index.tsx new file mode 100644 index 0000000..b887173 --- /dev/null +++ b/src/components/common/layout/footer/index.tsx @@ -0,0 +1,5 @@ +const Footer = () => { + return ; +}; + +export default Footer; diff --git a/src/components/common/layout/header/index.tsx b/src/components/common/layout/header/index.tsx new file mode 100644 index 0000000..3cb1895 --- /dev/null +++ b/src/components/common/layout/header/index.tsx @@ -0,0 +1,5 @@ +const Header = () => { + return
header
; +}; + +export default Header; diff --git a/src/components/common/layout/index.tsx b/src/components/common/layout/index.tsx new file mode 100644 index 0000000..1d469e0 --- /dev/null +++ b/src/components/common/layout/index.tsx @@ -0,0 +1,17 @@ +import type { FC, PropsWithChildren } from "react"; + +import Body from "./body"; +import Footer from "./footer"; +import Header from "./header"; + +const Layout: FC = ({ children }) => { + return ( + <> +
+ {children} +