Skip to content

Commit

Permalink
feat: setup commitlint & husky
Browse files Browse the repository at this point in the history
  • Loading branch information
bmstefanski committed Dec 23, 2023
1 parent 5e433cd commit b2607db
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 402 deletions.
34 changes: 0 additions & 34 deletions .all-contributorsrc

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Lint Commit Messages
on: [push, pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wagoid/commitlint-github-action@v5
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"

npm run commitlint ${1}
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml

This file was deleted.

303 changes: 0 additions & 303 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
43 changes: 0 additions & 43 deletions git-conventional-commits.yaml

This file was deleted.

25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"dev": "turbo run dev",
"lint": "turbo run lint",
"test": "turbo run test",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"commitlint": "commitlint --edit"
},
"dependencies": {
"@next/bundle-analyzer": "^14.0.3",
Expand Down Expand Up @@ -48,9 +49,13 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@enterprise-commerce/tsconfig": "*",
"@jest/globals": "^29.7.0",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "14.4.3",
"@total-typescript/ts-reset": "^0.5.1",
"@types/jest": "^29.5.10",
"@types/node": "^20.10.0",
Expand All @@ -59,26 +64,22 @@
"all-contributors-cli": "^6.26.1",
"autoprefixer": "^10.4.16",
"cross-env": "^7.0.3",
"eslint": "^8.48.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"npm-only-allow": "^1.2.6",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "3.0.3",
"prettier-plugin-tailwindcss": "^0.5.7",
"semantic-release": "^22.0.8",
"ts-jest": "^29.1.1",
"tsc": "^2.0.4",
"typescript": "5.3.2",
"webpack": "5.89.0",
"prettier": "3.0.3",
"prettier-plugin-tailwindcss": "^0.5.7",
"@commitlint/cli": "^18.2.0",
"@commitlint/config-conventional": "^18.1.0",
"@enterprise-commerce/tsconfig": "*",
"@testing-library/user-event": "14.4.3",
"eslint": "^8.48.0",
"husky": "^8.0.3",
"tsup": "^7.2.0",
"turbo": "latest"
"turbo": "latest",
"typescript": "5.3.2",
"webpack": "5.89.0"
},
"engines": {
"node": ">=18.17.0"
Expand Down
3 changes: 0 additions & 3 deletions packages/eslint-config-custom/README.md

This file was deleted.

4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==

"@commitlint/cli@^18.2.0":
"@commitlint/cli@^18.4.3":
version "18.4.3"
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-18.4.3.tgz#5b6112035f2cb17b76244cde5f1587ab853c2365"
integrity sha512-zop98yfB3A6NveYAZ3P1Mb6bIXuCeWgnUfVNkH4yhIMQpQfzFwseadazOuSn0OOfTt0lWuFauehpm9GcqM5lww==
Expand All @@ -1432,7 +1432,7 @@
resolve-global "1.0.0"
yargs "^17.0.0"

"@commitlint/config-conventional@^18.1.0":
"@commitlint/config-conventional@^18.4.3":
version "18.4.3"
resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-18.4.3.tgz#8158e6bd874a86ff46a6424f45acd803bc5fef1b"
integrity sha512-729eRRaNta7JZF07qf6SAGSghoDEp9mH7yHU0m7ff0q89W97wDrWCyZ3yoV3mcQJwbhlmVmZPTkPcm7qiAu8WA==
Expand Down

0 comments on commit b2607db

Please sign in to comment.