Skip to content

Commit

Permalink
feat: add husky and commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Aug 28, 2021
1 parent 003cb73 commit 5f8cd7a
Show file tree
Hide file tree
Showing 4 changed files with 856 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "This is an obsidian plugin that allows us to use an icon in the prefix of a folder name.",
"main": "main.js",
"scripts": {
"prepare": "husky install",
"dev": "rollup --config rollup.config.js -w",
"build": "rollup --config rollup.config.js --environment BUILD:production",
"lint": "eslint '*/**/*.{js,ts,tsx}' --quiet --fix"
Expand All @@ -12,6 +13,8 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-typescript": "^8.2.1",
Expand All @@ -22,6 +25,7 @@
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^7.0.2",
"obsidian": "^0.12.0",
"prettier": "^2.3.2",
"rollup": "^2.32.1",
Expand Down
Loading

0 comments on commit 5f8cd7a

Please sign in to comment.