Skip to content

Commit

Permalink
chore :: git-push.yml target branch
Browse files Browse the repository at this point in the history
  • Loading branch information
teamreturn committed Jul 5, 2024
1 parent 61a167d commit f8657db
Show file tree
Hide file tree
Showing 1,802 changed files with 38,118 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
122 changes: 122 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended",
],
ignorePatterns: ["dist", ".eslintrc.cjs", "vite.config.ts"],
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
"react",
"react-refresh",
"unicorn",
"prettier",
],
rules: {
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
], // prettier 룰에 어긋난 부분은 에러로 처리
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
], // 기본 설정
"react/jsx-tag-spacing": [
"error",
{
closingSlash: "never",
beforeSelfClosing: "always",
afterOpening: "never",
beforeClosing: "never",
},
],
"react/self-closing-comp": "error",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",

curly: "error", // 중괄호 생략 금지
"no-var": "error", // var 금지
"no-multiple-empty-lines": "error", // 2줄 이상 공백 금지
"no-console": ["warn", { allow: ["warn", "error", "info"] }], // console.log() 경고
"dot-notation": "error", // 가능하다면 dot notation 사용
"no-unused-vars": "warn", // 사용하지 않는 변수 경고
"no-var": "error", // var 금지
"no-empty": "warn", // 중괄호 안에 아무것도 들어가있지 않으면 경고
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: "case", next: "*" },
{ blankLine: "always", prev: "*", next: "case" },
], // switch case문에서 case마다 줄바꿈
"no-constant-condition": "warn", // if문의 조건같은 부분에 true나 false같이 변하지 않는 값이 들어가는 것 금지
"sort-vars": "error", // 변수 알파벳 순서로 정렬
quotes: [
"error",
"double",
{ avoidEscape: true, allowTemplateLiterals: true },
], // 문자열 내에 따옴표가 포함될 경우 템플릿 리터럴을 사용
"prefer-template": "error", // 문자열을 연결할 때 문자열 연결 연산자(+) 금지
"arrow-parens": ["error", "as-needed"], // 매개변수가 단일 매개변수라면 소괄호 생략
"no-undef": "off", // CommonJS, ES 모듈 관련 린트

"unicorn/filename-case": [
"error",
{
case: "camelCase",
ignore: ["App.tsx", "vite-env.d.ts", "next-env.d.ts", /^vendor/i],
},
], // 파일명은 camelCase
"unicorn/prevent-abbreviations": "off", //축약어 사용피하도록 권장 off
"unicorn/no-null": "off", //null 값의 사용을 피하도록 권장 off
"unicorn/prefer-query-selector": "off", //querySelector메서드의 사용을 getElementById, getElementsByClassName 등 대신 권장하는 규칙 off
"unicorn/better-regex": "off", //더 간결하고 명확한 정규 표현식을 사용하도록 권장하는 규칙 off
"unicorn/no-useless-undefined": "off", //불필요하게 undefined를 반환하거나 설정하는 것을 방지하는 규칙 off
"unicorn/prefer-module": "off", // 축약어 사용 방지하는 규칙 off
"unicorn/consistent-function-scoping": "off", // ??
"unicorn/no-process-exit": "off", // process.exit() 허용
"unicorn/switch-case-braces": "off",
"unicorn/catch-error-name": "off",
"unicorn/prefer-spread": "off",
"unicorn/no-lonely-if": "off",
"unicorn/prefer-string-replace-all": "off",

"@typescript-eslint/ban-ts-comment": "off", // ts-ignore 가능
"@typescript-eslint/no-unused-vars": "off", // 위 no-unused-vars와 중복
"@typescript-eslint/no-shadow": "error", // 같은 변수명 금지
"@typescript-eslint/no-var-requires": "off", // require 허용
"@typescript-eslint/naming-convention": [
// 코드 전반 네이밍 컨벤션
"error",
{
format: ["PascalCase", "camelCase"],
selector: "variable",
modifiers: ["exported"],
},
{
format: ["PascalCase", "camelCase", "snake_case"],
selector: "variable",
leadingUnderscore: "allow",
},
{
format: ["camelCase"],
selector: "parameter",
leadingUnderscore: "allow",
},
{
format: ["PascalCase", "camelCase"],
selector: "function",
modifiers: ["exported"],
},
{ format: ["camelCase"], selector: "function" },
{ format: ["PascalCase"], selector: "interface" },
{ format: ["PascalCase"], selector: "typeAlias" },
],
},
};
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Learn how to add code owners here:
# https://help.github.com/en/articles/about-code-owners

* @jikwan0327 @KANGYONGSU23 @JJIIIINN
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Bug"
description: "버그가 생겼어요 😠"
labels: 버그
body:
- type: textarea
attributes:
label: Describe
description: |
버그에 관한 설명을 간단하게 작성해주세요.
placeholder: |
매우 심각한 버그에요!
- type: textarea
attributes:
label: How
description: |
어떤상황에서 생기는 버그인지 간단하게 설명해주세요.
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
- type: textarea
attributes:
label: Additional
description: |
추가로 할말이 있으신가요?
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "ISSUE"
description: "어떤 이슈를 만드시나요? 📗"
body:
- type: textarea
attributes:
label: Describe
description: |
[개요] 할일에 관한 설명을 간단하게 작성해주세요.
placeholder: |
DropDownMenu 제작
- type: textarea
attributes:
label: Work
description: |
[작업내용] 무슨 작업을 하셨나요?
placeholder: |
- [ ] 이걸 했어요
- [ ] 이거를 끝냈어요
- type: textarea
attributes:
label: Additional
description: |
[추가사항] 추가로 할말이 있으신가요?
8 changes: 8 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
addReviewers: true

addAssignees: author

reviewers:
- jikwan0327
- KANGYONGSU23
- JJIIIINN
36 changes: 36 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## What is this PR?🔍
<!-- PR을 설명해주세요 -->
<!-- 🤷‍♀️어떤 역할을 하나요? 왜 만들었나요? -->




<!----------------------------------------------------------------------------------------->

## 작업내용📑
<!-- 작업내용에 대한 설명을 작성해주세요 -->




<!----------------------------------------------------------------------------------------->

## 스크린샷📸
<!-- 스크린 샷을 함께 첨부해주세요 -->




<!----------------------------------------------------------------------------------------->

## 공유 사항
<!-- 팀원들에게 공유할 만한 사항이 있다면 작성해주세요. -->




<!----------------------------------------------------------------------------------------->

## Issues
<!-- 관련된 이슈번호 할당 -->
- close #
33 changes: 33 additions & 0 deletions .github/workflows/git-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: git push into another repo to deploy to vercel

on:
push:

jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v2
- name: Install mustache (to update the date)
run: apk add ruby && gem install mustache
- name: Check files before build
run: ls -al
- name: creates output
run: sh ./build.sh
- name: Check files after build
run: ls -al ./output
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.JOBIS_GITHUB_TOKEN }}
with:
source-directory: 'output'
destination-github-username: teamreturn
destination-repository-name: JOBIS-FE
user-email: ${{ secrets.RETURN_ACCOUNT_EMAIL }}
commit-message: ${{ github.event.commits[0].message }}
target-branch: ${{ github.ref_name }}
- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY
67 changes: 67 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
dist
tmp
/out-tsc

# dependencies
node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
*.DS_Store
*.log
*.tsbuildinfo
Thumbs.db

.nx/cache

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

**/dist/*
dist

# storybook
**/storybook-static/

# next.js
**/.next/
**/out/

# production
**/build

.env
**/.env
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit $1
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
Loading

0 comments on commit f8657db

Please sign in to comment.