Skip to content

Commit 1df6e61

Browse files
committed
config: 프로젝트 초기 설정
0 parents  commit 1df6e61

40 files changed

+13164
-0
lines changed

.eslintrc.cjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react-hooks/recommended',
8+
'plugin:@tanstack/eslint-plugin-query/recommended',
9+
'prettier',
10+
'plugin:storybook/recommended',
11+
'plugin:tailwindcss/recommended',
12+
],
13+
ignorePatterns: ['dist', '.eslintrc.cjs', 'vite.config.ts'],
14+
parser: '@typescript-eslint/parser',
15+
plugins: ['react', 'react-refresh'],
16+
};

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Run vitest test
2+
on:
3+
pull_request:
4+
jobs:
5+
build:
6+
runs-on: ubuntu-20.04
7+
strategy:
8+
matrix:
9+
node-version: [16]
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: pnpm/action-setup@v3
13+
with:
14+
version: 8
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
cache: 'pnpm'
20+
- name: Install dependencies
21+
run: pnpm install
22+
- name: Run vitest test
23+
run: pnpm test

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
*storybook.log

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pnpm lint
2+
3+
pnpm dlx prettier --cache --write .

.prettierrc.cjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
endOfLine: 'lf', // 윈도우-맥 개행 에러를 막기 위해 줄넘김값 lf로 설정
3+
singleQuote: true, // 홑따옴표를 사용
4+
semi: true, // 코드 마지막에 세미콜론 사용
5+
useTabs: false, // 스페이스바 대신 탭를 사용
6+
tabWidth: 2, // 들여쓰기는 2칸
7+
trailingComma: 'all', // 모든 요소에 쉼표(,)를 붙임
8+
printWidth: 120, // 한 줄에 120칸까지만 사용
9+
arrowParens: 'always', // 화살표 함수의 인자가 하나여도 괄호를 넣도록
10+
};

.storybook/main.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import type { StorybookConfig } from '@storybook/react-vite';
2+
3+
const config: StorybookConfig = {
4+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5+
addons: [
6+
'@storybook/addon-onboarding',
7+
'@storybook/addon-links',
8+
'@storybook/addon-essentials',
9+
'@chromatic-com/storybook',
10+
'@storybook/addon-interactions',
11+
],
12+
framework: {
13+
name: '@storybook/react-vite',
14+
options: {},
15+
},
16+
docs: {
17+
autodocs: 'tag',
18+
},
19+
};
20+
export default config;

.storybook/preview.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { Preview } from '@storybook/react';
2+
3+
const preview: Preview = {
4+
parameters: {
5+
controls: {
6+
matchers: {
7+
color: /(background|color)$/i,
8+
date: /Date$/i,
9+
},
10+
},
11+
},
12+
};
13+
14+
export default preview;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# DateLeaf
2+
3+
‘날짜‘와 ‘잎사귀‘를 결합하여, 시간이 자연스럽게 흐르는 것을 나타내며, 각 일정이 잎사귀처럼 하나하나 소중함을 강조합니다.

0 commit comments

Comments
 (0)