Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
a491182
chore: eslint-config package.json 으로 의존성 통일
namdaeun Mar 6, 2026
47bd2e0
feat: prettier-config package.json 추가
namdaeun Mar 6, 2026
d82607b
refactor: 워크스페이스 패키지 참조
namdaeun Mar 6, 2026
250711b
refactor: root prettier rule 추가
namdaeun Mar 6, 2026
c36537d
refactor: root eslint rule 정의
namdaeun Mar 6, 2026
b56de7d
chore: update turbo.json
namdaeun Mar 6, 2026
a4ac3a1
refactor: 공용 config로 변경
namdaeun Mar 6, 2026
e9a728e
chore: yarn install
namdaeun Mar 6, 2026
505bbc4
chore: lint fix script 추가
namdaeun Mar 6, 2026
166e1bd
fix: fix lint errors
namdaeun Mar 6, 2026
3748b55
chore: add prettier scripts
namdaeun Mar 6, 2026
ef2e36b
chore: disable react/jsx-key rule
namdaeun Mar 6, 2026
f23daaa
chore: yarn install
namdaeun Mar 6, 2026
7c93a78
chore: add eslint and prettier ignore files
namdaeun Mar 6, 2026
537f792
chore: add prettier scripts
namdaeun Mar 6, 2026
647fbad
chore: ignore path 옵션 추가
namdaeun Mar 6, 2026
fb9ad57
refactor: 공유 config rules 적용
namdaeun Mar 6, 2026
caf99f6
chore: root ignore file로 통일
namdaeun Mar 6, 2026
a80b6c8
chore: solve console warnings
namdaeun Mar 6, 2026
961464a
chore: stylelint script 추가
namdaeun Mar 7, 2026
c6f2234
chore: update gitignore
namdaeun Mar 7, 2026
cba980b
chore: update env
namdaeun Mar 7, 2026
94214a9
chore: dotfile 패턴 추가
namdaeun Mar 7, 2026
9c254cb
chore: trigger workflow
namdaeun Mar 7, 2026
c8fe521
chore: remove paths from pull request triggers
namdaeun Mar 7, 2026
b1be091
chore: prettier -> format으로 변경
namdaeun Mar 7, 2026
160aa04
feat: lint-staged 추가
namdaeun Mar 7, 2026
a7aa96e
chore: modify deprecated rule
namdaeun Mar 7, 2026
29c1fda
refactor: gitignore 루트로 통일
namdaeun Mar 7, 2026
48f8e3a
chore: 불필요한 코드 제거
namdaeun Mar 7, 2026
e41a8c9
chore: jsx-key rule 활성화
namdaeun Mar 7, 2026
4eb63ca
chore: 안 쓰이는 트리거 제거
namdaeun Mar 8, 2026
2fb2b4a
chore: 명령어 수정
namdaeun Mar 8, 2026
7cd8def
chore: add check script
namdaeun Mar 8, 2026
e43c761
chore: base no-unused-vars 옵션 꺼둠
namdaeun Mar 8, 2026
fae0485
chore: type import/export rule 추가
namdaeun Mar 8, 2026
2314587
docs: prettier 패키지로 분리하지 않음
namdaeun Mar 8, 2026
8d9ba0e
chore: yarn install
namdaeun Mar 8, 2026
a47fbde
chore: autofix 옵션 추가
namdaeun Mar 8, 2026
eb2c899
chore: update scripts
namdaeun Mar 8, 2026
f173307
fix: lint-staged에서 Export검사 제외
namdaeun Mar 8, 2026
2123941
chore: import type rule 적용
namdaeun Mar 8, 2026
3e1714c
chore: lint-staged 규칙 정의
namdaeun Mar 8, 2026
1feea94
chore: pull request trigger 추가
namdaeun Mar 8, 2026
fcfeb5b
chore: update workflows
namdaeun Mar 8, 2026
470dc6f
chore: merge
namdaeun Mar 9, 2026
8194895
chore: label workflow에서 파일 목록 paginate 처리
namdaeun Mar 11, 2026
dde4939
chore: typecheck 명령어 추가
namdaeun Mar 11, 2026
7220188
chore: 앱별 스크립트 삭제
namdaeun Mar 11, 2026
781b6d8
docs: 파일명 변경
namdaeun Mar 11, 2026
8777806
chore: 버전 변경
namdaeun Mar 11, 2026
14027ba
chore: ignorePatterns 추가 및 ignore 파일 삭제
namdaeun Mar 11, 2026
20d36be
chore: 안쓰는 script 삭제
namdaeun Mar 11, 2026
a30bc16
chore: 안 쓰이는 script 삭제
namdaeun Mar 11, 2026
97f3e10
chore: sort 명령어 추가
namdaeun Mar 11, 2026
c5678a9
chore: update scripts
namdaeun Mar 11, 2026
ac809ed
chore: update scripts
namdaeun Mar 11, 2026
992cc34
fix: 버그 우회를 위해 ignore 빈 파일 추가
namdaeun Mar 11, 2026
480110f
chore: 주석 추가
namdaeun Mar 11, 2026
33aad0f
chore: 안 쓰는 워크플로우 제거
namdaeun Mar 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# eslint-plugin-import의 no-unused-modules 규칙이 FileEnumerator 내부 API를 사용할 때
# .eslintignore 파일의 존재를 필요로 합니다. 내용이 없어도 파일이 있어야 정상 동작합니다.
14 changes: 0 additions & 14 deletions .github/workflows/assign-reviewer.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
cp apps/playground/.env.development apps/playground/.env.local
echo "${{ vars.PLAYGROUND_DEVELOPMENT_ENV }}" >> apps/playground/.env.local

- name: Build packages
run: yarn turbo run build --filter=@sopt/ui

- name: Publish Chromatic
id: publish_chromatic
uses: chromaui/action@v1
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/crew-deploy-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ on:
push:
branches: [develop]
paths:
- "apps/crew/**"
- "packages/**"
- "package.json"
- "yarn.lock"
- 'apps/crew/**'
- 'packages/**'
- 'package.json'
- 'yarn.lock'
pull_request:
paths:
- "apps/crew/**"
- "packages/**"
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Label PR
run: |
PR=${{ github.event.pull_request.number }}
changed_files=$(gh pr diff $PR --name-only)
changed_files=$(gh api "repos/${{ github.repository }}/pulls/$PR/files" --paginate -q '.[].filename')

current_labels=$(gh pr view $PR --json labels -q '.labels[].name')

Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/playground-deploy-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ on:
push:
branches: [develop]
paths:
- "apps/playground/**"
- "packages/**"
- "package.json"
- "yarn.lock"
- 'apps/playground/**'
- 'packages/**'
- 'package.json'
- 'yarn.lock'
pull_request:
paths:
- "apps/playground/**"
- "packages/**"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -84,8 +81,8 @@ jobs:
id: find_comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: "Playground 프리뷰 배포 확인하기"
comment-author: 'github-actions[bot]'
body-includes: 'Playground 프리뷰 배포 확인하기'

- name: Create or update comment
if: github.event_name == 'pull_request'
Expand Down
50 changes: 41 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,57 @@
# yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.pnp.*
install-state.gz

# Whether you use PnP or not, the node_modules folder is often used to store
# build artifacts that should be gitignored
# dependencies
node_modules

# Swap the comments on the following lines if you wish to use zero-installs
# In that case, don't forget to run `yarn config set enableGlobalCache false`!
# Documentation here: https://yarnpkg.com/features/caching#zero-installs
# next.js
.next/
out/

#!.yarn/cache
.pnp.*
# production
build/
coverage/

# storybook
storybook-static

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

.env.local
# local env files
.env*.local
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# editor
.vscode/
.idea

# Turbo
.turbo

# Build outputs
packages/ui/dist
packages/ui/dist/**/*

# crew generated
apps/crew/src/__generated__/open-api-specification.json
4 changes: 4 additions & 0 deletions .husky/pre-commit
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
5 changes: 5 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"apps/crew/**/*.{ts,tsx}": ["eslint --fix", "bash -c 'cd apps/crew && tsc --noemit -p .'"],
"apps/playground/**/*.{ts,tsx}": ["eslint --fix", "bash -c 'cd apps/playground && tsc --noemit -p .'"],
"**/*.{ts,tsx,js,jsx,json,css,md}": "prettier --write --ignore-path .prettierignore"
}
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# dependencies
node_modules

# build outputs
.next
out
dist

# docs
**/*.md
1 change: 1 addition & 0 deletions apps/playground/.prettierrc.json → .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"jsxSingleQuote": true,
"printWidth": 120,
"quoteProps": "consistent",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
Expand Down
3 changes: 2 additions & 1 deletion apps/crew/.eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src/__generated__
# eslint-plugin-import의 no-unused-modules 규칙이 FileEnumerator 내부 API를 사용할 때
# .eslintignore 파일의 존재를 필요로 합니다. 내용이 없어도 파일이 있어야 정상 동작합니다.
36 changes: 1 addition & 35 deletions apps/crew/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,4 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"es6": true,
"node": true,
"browser": true
},
"plugins": ["@typescript-eslint", "prettier", "import"],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:storybook/recommended"
],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react-hooks/set-state-in-effect": "warn",
"react-hooks/static-components": "warn",
"react-hooks/immutability": "warn",
"react-hooks/refs": "warn",
"react-hooks/incompatible-library": "warn",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"import/no-unused-modules": [1, { "unusedExports": true }],
"react/no-unstable-nested-components": "off"
}
"extends": ["@sopt-makers/eslint-config/next"]
}
46 changes: 0 additions & 46 deletions apps/crew/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions apps/crew/.prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion apps/crew/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config: StorybookConfig = {
autodocs: 'tag',
},
webpackFinal(config) {
const imageRule = config.module!.rules!.find(rule => {
const imageRule = config.module!.rules!.find((rule) => {
if (rule && typeof rule !== 'string' && rule.test instanceof RegExp) {
return rule.test.test('.svg');
}
Expand Down
4 changes: 2 additions & 2 deletions apps/crew/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Preview } from '@storybook/react';
import { OverlayProvider } from '../src/hooks/useOverlay/OverlayProvider';
import { OverlayProvider } from '../src/hook/useOverlay/OverlayProvider';
import React from 'react';
import '../styles/globals.css';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
Expand All @@ -24,7 +24,7 @@ const preview: Preview = {
},
},
decorators: [
Story => {
(Story) => {
const queryClient = new QueryClient();

return (
Expand Down
2 changes: 1 addition & 1 deletion apps/crew/ampli.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"Language": "TypeScript",
"SDK": "@amplitude/analytics-browser@^1.0",
"Path": "./src/ampli"
}
}
2 changes: 1 addition & 1 deletion apps/crew/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const nextConfig = {
output: 'export',
reactStrictMode: true,
swcMinify: true,
webpack: config => {
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
oneOf: [
Expand Down
22 changes: 9 additions & 13 deletions apps/crew/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"typecheck": "tsc --noemit -p .",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"dev": "next dev",
"format": "prettier --write . --ignore-path ../../.prettierignore",
"generate-types": "cat ./src/__generated__/schema1.d.ts ./src/__generated__/schema2.d.ts > ./src/__generated__/schema.d.ts",
"generate-types-v1": "openapi-typescript https://crew.api.dev.sopt.org/api-docs-json -o ./src/__generated__/schema1.d.ts",
"generate-types-v2": "openapi-typescript https://crew.api.dev.sopt.org/api-docs/json -o ./src/__generated__/schema2.d.ts",
"generate-types": "cat ./src/__generated__/schema1.d.ts ./src/__generated__/schema2.d.ts > ./src/__generated__/schema.d.ts",
"wrangler": "wrangler",
"where": "sh -c 'export IP=`ipconfig getifaddr en0` && echo [info] we are in ... http://${IP}:3000'"
"lint": "next lint",
"start": "next start",
"storybook": "storybook dev -p 6006",
"typecheck": "tsc --noemit -p .",
"where": "sh -c 'export IP=`ipconfig getifaddr en0` && echo [info] we are in ... http://${IP}:3000'",
"wrangler": "wrangler"
},
"dependencies": {
"@amplitude/ampli": "^1.35.0",
Expand Down Expand Up @@ -52,12 +53,7 @@
"@hookform/devtools": "^4.3.1",
"@types/react-mentions": "4.1.13",
"@types/react-responsive": "^8.0.5",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react-hooks": "^7.0.1",
"openapi-typescript": "^6.3.9",
"prettier": "^3.0.0",
"wrangler": "^3.0.0"
}
}
Loading
Loading