-
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.
- Loading branch information
Showing
11 changed files
with
1,081 additions
and
78 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,13 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": "standard-with-typescript", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
} | ||
} |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn lint-staged |
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,5 +1,5 @@ | ||
{ | ||
"name": "mala-web", | ||
"name": "mara-web", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
|
@@ -9,7 +9,14 @@ | |
"lint": "next lint", | ||
"storybook": "storybook dev -p 6006", | ||
"build-storybook": "storybook build", | ||
"prepare": "husky install" | ||
"prepare": "husky install", | ||
"lint-fix": "eslint \"**\\*.{ts,tsx}\" --ext .ts,.tsx --fix", | ||
"lint-staged": "lint-staged" | ||
}, | ||
"lint-staged": { | ||
"src/**": [ | ||
"eslint --fix" | ||
] | ||
}, | ||
"dependencies": { | ||
"@commitlint/cli": "^18.4.3", | ||
|
@@ -30,11 +37,22 @@ | |
"@types/node": "^20", | ||
"@types/react": "^18", | ||
"@types/react-dom": "^18", | ||
"@typescript-eslint/eslint-plugin": "^6.4.0", | ||
"autoprefixer": "^10.0.1", | ||
"eslint": "^8.0.1", | ||
"eslint-config-standard-with-typescript": "^40.0.0", | ||
"eslint-plugin-import": "^2.25.2", | ||
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^15.2.0", | ||
"postcss": "^8", | ||
"storybook": "7.6.3", | ||
"tailwindcss": "^3.3.0", | ||
"typescript": "^5" | ||
} | ||
"typescript": "*" | ||
}, | ||
"main": "index.js", | ||
"repository": "https://github.com/DDD-Community/mara-web.git", | ||
"author": "a-honey <[email protected]>", | ||
"license": "MIT" | ||
} |
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,6 +1,6 @@ | ||
import '@/styles/globals.css' | ||
import type { AppProps } from 'next/app' | ||
|
||
export default function App({ Component, pageProps }: AppProps) { | ||
export default function App ({ Component, pageProps }: AppProps): JSX.Element { | ||
return <Component {...pageProps} /> | ||
} |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction | ||
import type { NextApiRequest, NextApiResponse } from 'next' | ||
|
||
type Data = { | ||
interface Data { | ||
name: string | ||
} | ||
|
||
export default function handler( | ||
export default function handler ( | ||
req: NextApiRequest, | ||
res: NextApiResponse<Data> | ||
) { | ||
): void { | ||
res.status(200).json({ name: 'John Doe' }) | ||
} |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import React from "react"; | ||
import Test from "./Test"; | ||
import React from 'react' | ||
import Test from './Test' | ||
|
||
export default { | ||
title: "Components/Test", | ||
component: Test, | ||
}; | ||
title: 'Components/Test', | ||
component: Test | ||
} | ||
|
||
export const Default: React.FC = (args: any) => <Test {...args} />; | ||
export const Default: React.FC = (args: any) => <Test {...args} /> |
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,5 +1,5 @@ | ||
const Test = () => { | ||
return <div className="bg-orange-300">스토리북테스트</div>; | ||
}; | ||
const Test: React.FC = () => { | ||
return <div className="bg-orange-300">스토리북테스트</div> | ||
} | ||
|
||
export default Test; | ||
export default Test |
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,21 +1,21 @@ | ||
import type { Config } from "tailwindcss"; | ||
import type { Config } from 'tailwindcss' | ||
|
||
const config: Config = { | ||
content: [ | ||
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./src/components/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./src/app/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./src/stories/*.{js,ts,jsx,tsx,mdx}", | ||
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/components/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/app/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/stories/*.{js,ts,jsx,tsx,mdx}' | ||
], | ||
theme: { | ||
extend: { | ||
backgroundImage: { | ||
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))", | ||
"gradient-conic": | ||
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", | ||
}, | ||
}, | ||
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', | ||
'gradient-conic': | ||
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))' | ||
} | ||
} | ||
}, | ||
plugins: [], | ||
}; | ||
export default config; | ||
plugins: [] | ||
} | ||
export default config |
Oops, something went wrong.