-
Notifications
You must be signed in to change notification settings - Fork 4
feat : ci workflow #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat : ci workflow #332
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
6e3ce4a
chore: implement Husky & CI workflow enhancements
manNomi df96024
fix: 린트 경고 수정
manNomi 8a43d97
fix: 린트 에러 수정
manNomi 54b557f
chore: ESLint 및 Prettier 마이그레이션
manNomi 0ab9ad0
fix: ESLint 설정 파일 파싱 에러 수정
manNomi 7eb263a
fix: resolve ESLint and TypeScript issues
manNomi c6b520f
fix: resolve ESLint rule conflicts and undefined value handling
manNomi 7f173ed
fix : lint
manNomi 97dbc6d
fix: 리베이스 충돌 해결 및 누락된 코드 복구
manNomi 01d4129
chore: relax eslint rules - change any type and import rules to warn
manNomi d2a8875
chore: remove pr title validation from ci workflow
manNomi 8be1041
style: fix prettier formatting
manNomi a4535f3
fix: resolve typescript errors after rebase
manNomi 5f120b0
fix: resolve typescript errors after rebase
manNomi 9262591
fix: handle undefined FIREBASE_PRIVATE_KEY in build
manNomi cea0e13
fix: add critters dependency for optimizeCss
manNomi ae95133
fix: resolve build errors, typescript issues, and svg warnings
manNomi 4e675e8
refactor: improve firebase error handling and add pre-push hook
manNomi 5cd290f
chore: update husky pre-push for v10 compatibility
manNomi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,134 @@ | ||
| /** | ||
| * ESLint 설정 파일 | ||
| * Next.js + TypeScript 프로젝트용 | ||
| * | ||
| * 주요 설정: | ||
| * - TypeScript 파서 사용 | ||
| * - Next.js 및 TypeScript 권장 규칙 적용 | ||
| * - Prettier와의 충돌 방지 | ||
| */ | ||
| module.exports = { | ||
| root: true, | ||
| parser: "@typescript-eslint/parser", | ||
| parserOptions: { | ||
| ecmaVersion: "latest", | ||
| sourceType: "module", | ||
| project: "./tsconfig.json", | ||
| }, | ||
| env: { | ||
| browser: true, | ||
| es2021: true, | ||
| node: true, | ||
| }, | ||
| plugins: ["@typescript-eslint"], | ||
| extends: [ | ||
| // Next.js 기본 설정 | ||
| "next", | ||
| // Next.js TypeScript 설정 (plugin:@typescript-eslint/recommended 기반) | ||
| "next/typescript", | ||
| // TypeScript ESLint 권장 규칙 | ||
| "plugin:@typescript-eslint/recommended", | ||
| // Prettier와 충돌하는 규칙 비활성화 (항상 마지막에 위치해야 함) | ||
| "prettier", | ||
| ], | ||
| overrides: [ | ||
| { | ||
| // 설정 파일들은 TypeScript 프로젝트에 포함되지 않으므로 project 옵션 비활성화 | ||
| env: { | ||
| node: true, | ||
| }, | ||
| files: [".eslintrc.{js,cjs}", "*.config.{js,mjs,ts}"], | ||
| parserOptions: { | ||
| sourceType: "script", | ||
| project: null, | ||
| }, | ||
| }, | ||
| ], | ||
| rules: { | ||
| // ========================================== | ||
| // React 관련 규칙 | ||
| // ========================================== | ||
|
|
||
| // JSX 사용 시 React import 불필요 (React 17+) | ||
| "react/react-in-jsx-scope": "off", | ||
|
|
||
| // JSX 허용 파일 확장자 | ||
| "react/jsx-filename-extension": [1, { extensions: [".js", ".jsx", ".tsx"] }], | ||
|
|
||
| // defaultProps 필수 여부 비활성화 | ||
| "react/require-default-props": "off", | ||
|
|
||
| // 함수 컴포넌트는 화살표 함수로 정의 | ||
| "react/function-component-definition": [1, { namedComponents: "arrow-function" }], | ||
|
|
||
| // ========================================== | ||
| // Import 관련 규칙 | ||
| // ========================================== | ||
|
|
||
| // import 순서는 Prettier 플러그인에서 처리 | ||
| "import/order": "off", | ||
|
|
||
| // import 시 파일 확장자 생략 (warning으로 설정) | ||
| "import/extensions": "off", | ||
|
|
||
| // 단일 export 시 default export 권장 (warning) | ||
| "import/prefer-default-export": "off", | ||
|
|
||
| // ========================================== | ||
| // 일반 JavaScript 규칙 | ||
| // ========================================== | ||
|
|
||
| // console.log 허용 (개발 편의) | ||
| "no-console": "off", | ||
|
|
||
| // alert 허용 | ||
| "no-alert": "off", | ||
|
|
||
| // 정의 전 사용 허용 (TypeScript에서 처리) | ||
| "no-use-before-define": "off", | ||
|
|
||
| // 미사용 변수 - 기본 규칙 비활성화 (TypeScript 규칙과 충돌 방지) | ||
| "no-unused-vars": "off", | ||
|
|
||
| // ========================================== | ||
| // TypeScript 관련 규칙 | ||
| // ========================================== | ||
|
|
||
| // 미사용 변수 경고 (TypeScript용 - 기본 규칙 대신 사용) | ||
| "@typescript-eslint/no-unused-vars": "warn", | ||
|
|
||
| // any 타입 사용 경고 (error -> warn) | ||
| "@typescript-eslint/no-explicit-any": "warn", | ||
|
|
||
| // any 타입 관련 규칙 (경고로 설정) | ||
| "@typescript-eslint/no-unsafe-assignment": "warn", | ||
| "@typescript-eslint/no-unsafe-member-access": "warn", | ||
| "@typescript-eslint/no-unsafe-return": "warn", | ||
| "@typescript-eslint/no-unsafe-call": "warn", | ||
| "@typescript-eslint/no-unsafe-argument": "warn", | ||
|
|
||
| // ========================================== | ||
| // 접근성 (a11y) 관련 규칙 | ||
| // ========================================== | ||
|
|
||
| // label과 control 연결 규칙 비활성화 | ||
| "jsx-a11y/label-has-associated-control": "off", | ||
|
|
||
| // 클릭 이벤트에 키보드 이벤트 필요 (경고) | ||
| "jsx-a11y/click-events-have-key-events": "warn", | ||
|
|
||
| // 정적 요소에 이벤트 핸들러 (경고) | ||
| "jsx-a11y/no-static-element-interactions": "warn", | ||
| }, | ||
| settings: { | ||
| "import/parsers": { | ||
| "@typescript-eslint/parser": [".ts", ".tsx"], | ||
| }, | ||
| "import/resolver": { | ||
| typescript: { | ||
| alwaysTryTypes: true, | ||
| project: "./tsconfig.json", | ||
| }, | ||
| }, | ||
| }, | ||
| }; | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,7 @@ | ||
| echo "🔍 Running lint check before push..." | ||
| npm run lint | ||
|
|
||
| echo "🔍 Running type check before push..." | ||
| npm run typecheck | ||
|
|
||
| echo "✅ All checks passed!" |
This file contains hidden or 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,38 @@ | ||
| # Dependencies | ||
| node_modules | ||
|
|
||
| # Build outputs | ||
| .next | ||
| out | ||
| build | ||
| dist | ||
|
|
||
| # Generated files | ||
| *.min.js | ||
| *.min.css | ||
| next-env.d.ts | ||
|
|
||
| # Lock files | ||
| package-lock.json | ||
| yarn.lock | ||
| pnpm-lock.yaml | ||
|
|
||
| # Cache | ||
| .cache | ||
| .turbo | ||
|
|
||
| # Coverage | ||
| coverage | ||
|
|
||
| # Sentry | ||
| .sentryclirc | ||
|
|
||
| # Vercel | ||
| .vercel | ||
|
|
||
| # Environment | ||
| .env* | ||
|
|
||
| # IDE | ||
| .idea | ||
| .vscode |
This file contains hidden or 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,11 +1,6 @@ | ||
| module.exports = { | ||
| extends: ['@commitlint/config-conventional'], | ||
| extends: ["@commitlint/config-conventional"], | ||
| rules: { | ||
| 'type-enum': [ | ||
| 2, | ||
| 'always', | ||
| ['feat', 'fix', 'refactor', 'style', 'test', 'docs', 'chore'], | ||
| ], | ||
| "type-enum": [2, "always", ["feat", "fix", "refactor", "style", "test", "docs", "chore"]], | ||
| }, | ||
| }; | ||
|
|
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ | |
| "hooks": "@/hooks" | ||
| }, | ||
| "iconLibrary": "lucide" | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.