Skip to content

Commit

Permalink
chore: configure husky and commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan authored Aug 24, 2022
1 parent 925c97e commit 5d672f0
Show file tree
Hide file tree
Showing 5 changed files with 4,057 additions and 855 deletions.
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"
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'] }
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@
},
"packageManager": "[email protected]",
"devDependencies": {
"@crowdin/cli": "^3.7.9",
"@koishijs/plugin-puppeteer": "^3.1.1",
"koishi": "^4.7.3",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@crowdin/cli": "^3.7.10",
"@koishijs/plugin-puppeteer": "^3.2.0",
"@koishijs/plugin-suggest": "^1.1.1",
"husky": "^8.0.1",
"koishi": "^4.8.5",
"koishi-plugin-puppeteer": "^3.0.2",
"prettier": "^2.7.1"
}
}
16 changes: 16 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@hamster-bot/constructeur": ["packages/constructeur/src"],
"@hamster-bot/eslint-config": ["packages/eslint-config"],
"@hamster-bot/prettier-config": ["packages/prettier-config"],
"lodestone-news": ["packages/lodestone-news/src"],
"koishi-plugin-image-search": ["plugins/image-search/src"],
"koishi-plugin-hitokoto": ["plugins/hitokoto/src"],
"koishi-plugin-ffxiv-eorzea": ["plugins/eorzea/src"],
"koishi-plugin-ffxiv-lodestone": ["plugins/lodestone/src"],
"koishi-plugin-ffxiv-macrodict": ["plugins/macrodict/src"],
}
}
}
Loading

0 comments on commit 5d672f0

Please sign in to comment.