Skip to content

Commit

Permalink
feat: add linted commit
Browse files Browse the repository at this point in the history
  • Loading branch information
javed committed Feb 1, 2024
1 parent 6cef8ec commit 337950b
Show file tree
Hide file tree
Showing 6 changed files with 754 additions and 27 deletions.
6 changes: 6 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"type-enum": [2, "always", ["ci", "chore", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "assets"]]
}
}
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@

yarn lint-staged --allow-empty
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"**/*.{ts,tsx,json}": ["prettier --write"]
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
"prepare": "husky"
},
"devDependencies": {
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@repo/eslint-config": "*",
"@repo/typescript-config": "*",
"autoprefixer": "^10.4.16",
"eslint": "^8.56.0",
"husky": "^9.0.7",
"lint-staged": "^15.2.1",
"postcss": "^8.4.33",
"prettier": "^3.1.1",
"tailwindcss": "^3.4.1",
Expand Down
Loading

0 comments on commit 337950b

Please sign in to comment.