Skip to content

Commit

Permalink
Merge pull request #1 from onify/task/commitlint
Browse files Browse the repository at this point in the history
Task/commitlint
  • Loading branch information
blaise-favor authored May 17, 2024
2 parents 63a3ffb + 7c0dece commit fc57c66
Show file tree
Hide file tree
Showing 9 changed files with 1,961 additions and 74 deletions.
2 changes: 2 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npx commitlint --edit "$1"
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.js": ["prettier --write"]
}
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 2,
"singleQuote": true,
"semi": true,
"trailingComma": "all",
"htmlWhitespaceSensitivity": "ignore",
"endOfLine": "lf",
"useTabs": false
}
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
extends: ['@onify/commitlint-config'],
};
Loading

0 comments on commit fc57c66

Please sign in to comment.