Skip to content

Commit

Permalink
feat: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
hophacker committed Mar 14, 2022
1 parent 11f487e commit eab9626
Show file tree
Hide file tree
Showing 5 changed files with 1,671 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
css-checker
node_modules/
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"

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']}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,10 @@
"name": "css-checker",
"path": "./bin",
"url": "https://github.com/ruilisi/css-checker/releases/download/v0.3.1/css-checker_0.3.1_{{platform}}_{{arch}}.tar.gz"
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"husky": "^7.0.4"
}
}
Loading

0 comments on commit eab9626

Please sign in to comment.