Skip to content

Commit

Permalink
Feature/#2 환경 설정 (#3)
Browse files Browse the repository at this point in the history
* chore: 환경 설정

#2

* chore: chakra ui 설치

#2

* chore: chakra 세팅

#2

* chore: Jotai 세팅

#2

* chore: .gitignore에 .env 추가

#2

* chore: src 폴더 사용으로 변경

#2

* chore: vscode 환경 설정

#2

* chore: next output standalone 으로 설정

- 도커 배포시 이미지 크기를 줄이기 위해 설정
- #2

* chore: prettier 규칙 설정

#2

* chore: pr template 세팅

#2

* chore: jotai provider 제거

#2

* chore: chakra ui 폴더 세팅

#2

* chore: eslint 설정

#2

---------

Co-authored-by: gimdogyun <[email protected]>
Co-authored-by: pipisebastian <[email protected]>
  • Loading branch information
3 people authored Jan 31, 2024
1 parent 5686dfa commit 5751873
Show file tree
Hide file tree
Showing 21 changed files with 6,246 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "chakra-ui"],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"airbnb",
"airbnb/hooks",
"airbnb-typescript",
"plugin:prettier/recommended",
"plugin:import/typescript",
"plugin:import/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"react/react-in-jsx-scope": "off",
"chakra-ui/props-order": "warn",
"chakra-ui/props-shorthand": "warn",
"chakra-ui/require-specific-component": "warn",
"import/extensions": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": ["arrow-function"]
}
],
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", ["sibling", "parent", "index"], "type"],
"pathGroupsExcludedImportTypes": [],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
},
"settings": {
"import/resolver": {
"node": {},
"typescript": {
"directory": "./src"
}
},
"import/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] }
}
}
19 changes: 19 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### 관련 이슈

-

### 작업 요약

-

### 작업 상세 설명

-

### 리뷰 요구 사항

-

### 미리 보기

-
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"singleQuote": true,
"semi": true,
"useTabs": false,
"tabWidth": 2,
"trailingComma": "all",
"printWidth": 120,
"arrowParens": "always"
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
swcPlugins: [["@swc-jotai/react-refresh", {}]],
},
output: "standalone",
};

module.exports = nextConfig;
Loading

0 comments on commit 5751873

Please sign in to comment.