소스 검색

feat: add code style (#242)

tags/0.3.1
Joel 2 년 전
부모
커밋
091beffae7
No account linked to committer's email address
7개의 변경된 파일53개의 추가작업 그리고 8개의 파일을 삭제
  1. 0
    1
      .gitignore
  2. 7
    0
      web/.eslintignore
  3. 2
    2
      web/.eslintrc.json
  4. 4
    0
      web/.husky/pre-commit
  5. 23
    0
      web/.vscode/settings.json
  6. 3
    3
      web/app/(commonLayout)/app/(appDetailLayout)/layout.tsx
  7. 14
    2
      web/package.json

+ 0
- 1
.gitignore 파일 보기

@@ -130,7 +130,6 @@ dmypy.json
.idea/'

.DS_Store
.vscode

# Intellij IDEA Files
.idea/

+ 7
- 0
web/.eslintignore 파일 보기

@@ -0,0 +1,7 @@
/**/node_modules/*
node_modules/

dist/
build/
out/
.next/

+ 2
- 2
web/.eslintrc.json 파일 보기

@@ -23,6 +23,6 @@
]
}
],
"react-hooks/exhaustive-deps": "warning"
"react-hooks/exhaustive-deps": "warn"
}
}
}

+ 4
- 0
web/.husky/pre-commit 파일 보기

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

cd ./web && npx lint-staged

+ 23
- 0
web/.vscode/settings.json 파일 보기

@@ -0,0 +1,23 @@
{
"prettier.enable": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
"[python]": {
"editor.formatOnType": true
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[javascriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
}
}

+ 3
- 3
web/app/(commonLayout)/app/(appDetailLayout)/layout.tsx 파일 보기

@@ -7,9 +7,9 @@ export type IAppDetail = {

const AppDetail: FC<IAppDetail> = ({ children }) => {
return (
<>
{children}
</>
<>
{children}
</>
)
}


+ 14
- 2
web/package.json 파일 보기

@@ -7,7 +7,9 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"fix": "next lint --fix"
"fix": "next lint --fix",
"eslint-fix": "eslint --fix",
"prepare": "cd ../ && husky install ./web/.husky"
},
"dependencies": {
"@emoji-mart/data": "^1.1.2",
@@ -78,8 +80,18 @@
"@types/qs": "^6.9.7",
"autoprefixer": "^10.4.14",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"miragejs": "^0.1.47",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.7"
},
"lint-staged": {
"**/*.js?(x)": [
"eslint --fix"
],
"**/*.ts?(x)": [
"eslint --fix"
]
}
}
}

Loading…
취소
저장