Skip to content

Commit

Permalink
chore: husky, lint-staged 세팅 및 commitlint 세팅 (#7)
Browse files Browse the repository at this point in the history
- husky, lint-staged 세팅 및 commitlint 세팅
  • Loading branch information
saseungmin committed Jun 29, 2024
1 parent e0f3950 commit 6c3f9af
Show file tree
Hide file tree
Showing 108 changed files with 1,934 additions and 58 deletions.
1 change: 1 addition & 0 deletions .eslintcache

Large diffs are not rendered by default.

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
9 changes: 9 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"*.{js,jsx,ts,tsx}": [
"yarn lint --cache",
"yarn test:unit --findRelatedTests --passWithNoTests"
],
"*.scss": [
"yarn stylelint"
]
}
991 changes: 971 additions & 20 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
/**
* NOTE
* commit type :build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test
* https://github.com/conventional-changelog/commitlint/blob/master/docs/reference-rules.md
* */
extends: ['@commitlint/config-conventional'],
};
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"test:coverage": "yarn test:unit --coverage",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"test:e2e": "start-server-and-test dev http://localhost:3000 cypress:run"
"test:e2e": "start-server-and-test dev http://localhost:3000 cypress:run",
"postinstall": "husky install && chmod ug+x .husky/*"
},
"repository": {
"type": "git",
Expand All @@ -34,6 +35,8 @@
"sanitize.css": "13.0.0"
},
"devDependencies": {
"@commitlint/cli": "18.4.4",
"@commitlint/config-conventional": "18.4.4",
"@next/eslint-plugin-next": "14.0.4",
"@testing-library/jest-dom": "6.1.4",
"@testing-library/react": "14.1.2",
Expand All @@ -59,8 +62,10 @@
"eslint-plugin-simple-import-sort": "10.0.0",
"eslint-plugin-testing-library": "6.2.0",
"eslint-plugin-unused-imports": "3.0.0",
"husky": "8.0.3",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lint-staged": "15.2.0",
"postcss": "8.4.32",
"postcss-scss": "4.0.9",
"react-test-renderer": "18.2.0",
Expand Down
Loading

0 comments on commit 6c3f9af

Please sign in to comment.