-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: install next.js 14 * change eslintrc file name * feat: create StyledComponentRegistry * chore: update tsconfig path * chore: remove eslint config import * chore(WIP): move to app router * chore: move folder * chore: update layout * update layout * [WIP] migrating * fix error on postdetail * switch Post Detail to app router * switch About to app router * switch PS service to app router * style: change style * remove unused files * rename * upgrade packages * w
- Loading branch information
Showing
60 changed files
with
3,701 additions
and
2,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
node: true, | ||
es6: true, | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
tsconfigRootDir: './', | ||
project: ['./tsconfig.json'], | ||
}, | ||
extends: [ | ||
'next/core-web-vitals', | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
], | ||
plugins: ['@typescript-eslint', 'import', 'react', 'react-hooks'], | ||
rules: { | ||
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }], | ||
'@typescript-eslint/consistent-type-exports': [ | ||
'error', | ||
{ fixMixedExportsWithInlineTypeSpecifier: false }, | ||
], | ||
'@typescript-eslint/consistent-type-imports': [ | ||
'error', | ||
{ prefer: 'type-imports' }, | ||
], | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
{ | ||
format: ['camelCase', 'PascalCase', 'UPPER_CASE'], | ||
selector: 'variable', | ||
}, | ||
{ | ||
format: ['camelCase', 'PascalCase'], | ||
selector: 'function', | ||
}, | ||
{ | ||
format: ['PascalCase'], | ||
selector: 'typeLike', | ||
}, | ||
], | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }], | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'no-console': ['warn', { allow: ['warn', 'error'] }], | ||
radix: 'error', | ||
'react/function-component-definition': [ | ||
'error', | ||
{ | ||
namedComponents: 'arrow-function', | ||
}, | ||
], | ||
'react/jsx-props-no-spreading': 'off', | ||
'react/jsx-max-props-per-line': [ | ||
'error', | ||
{ maximum: 1, when: 'multiline' }, | ||
], | ||
'react/jsx-no-useless-fragment': 'warn', | ||
'react/jsx-sort-props': [ | ||
'error', | ||
{ | ||
callbacksLast: true, | ||
shorthandFirst: true, | ||
multiline: 'last', | ||
reservedFirst: true, | ||
}, | ||
], | ||
'react/no-unknown-property': ['error', { ignore: ['css'] }], | ||
'react/prop-types': 'off', | ||
'react/react-in-jsx-scope': 'off', | ||
'react/require-default-props': 'off', | ||
'react/self-closing-comp': 'error', | ||
'spaced-comment': 'warn', | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/*.stories.*'], | ||
rules: { | ||
'import/no-anonymous-default-export': 'off', | ||
}, | ||
}, | ||
], | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
module.exports = { | ||
"singleQuote": true, | ||
"semi": true, | ||
"useTabs": false, | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react'; | ||
import Head from 'next/head'; | ||
import GlobalLayout from '~components/layouts/GlobalLayout'; | ||
import { DEFAULT_PAGE_TITLE } from '~lib/constants'; | ||
import type { Metadata } from 'next'; | ||
|
||
const metadata: Metadata = { | ||
title: `About Me - ${DEFAULT_PAGE_TITLE}`, | ||
description: '프론트엔드 개발자 벤을 소개합니다.', | ||
}; | ||
|
||
interface Props { | ||
children?: React.ReactNode; | ||
} | ||
|
||
const Layout = (props: Props) => { | ||
const { children } = props; | ||
|
||
return ( | ||
<GlobalLayout> | ||
<Head> | ||
<title>About Me - {DEFAULT_PAGE_TITLE}</title> | ||
<meta | ||
key="title" | ||
content={typeof metadata.title === 'string' ? metadata.title : ''} | ||
property="og:title" | ||
/> | ||
<meta | ||
key="description" | ||
content={metadata.description ?? ''} | ||
name="description" | ||
property="og:description" | ||
/> | ||
</Head> | ||
{children} | ||
</GlobalLayout> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Link from 'next/link'; | ||
import ReduxProviderRegistry from '~lib/registry/redux'; | ||
import NotificationBar from '~components/NotificationBar'; | ||
import Resume from '~components/Resume'; | ||
|
||
const Page = () => { | ||
return ( | ||
<ReduxProviderRegistry> | ||
<NotificationBar> | ||
<p> | ||
Currently looking for a job.{' '} | ||
<Link | ||
href="mailto:[email protected]" | ||
style={{ fontWeight: 'bold', textDecoration: 'underline' }} | ||
> | ||
</Link>{' '} | ||
me if you want to know more about me. | ||
</p> | ||
</NotificationBar> | ||
{/** first part of main page, introduction */} | ||
<Resume /> | ||
</ReduxProviderRegistry> | ||
); | ||
}; | ||
|
||
export default Page; |
Oops, something went wrong.