Skip to content

Commit

Permalink
feat: commitlint intergration (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
dxphilo authored Feb 22, 2022
1 parent 1cd6e48 commit 17c6aae
Show file tree
Hide file tree
Showing 4 changed files with 533 additions and 27 deletions.
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']}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"start": "nuxt start",
"build:web": "nuxt build",
"lint": "yarn eslint -c .eslintrc.js --ext .ts,.js,.vue ./src",
"lint-fix": "yarn eslint -c .eslintrc.js --fix --ext .ts,.js,.vue ./src"
"lint-fix": "yarn eslint -c .eslintrc.js --fix --ext .ts,.js,.vue ./src",
"postinstall": "husky install"
},
"dependencies": {
"@nuxtjs/dotenv": "^1.4.1",
Expand Down Expand Up @@ -72,6 +73,8 @@
"vuex-persistedstate": "^3.2.0"
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@nuxt/types": "^2.15.8",
"@nuxt/typescript-build": "^2.1.0",
"@nuxtjs/eslint-config-typescript": "^8.0.0",
Expand All @@ -86,6 +89,7 @@
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier-vue": "^3.1.0",
"husky": "^7.0.4",
"prettier": "^2.5.1",
"ts-loader": "^8.3.0",
"typescript": "^4.5.5"
Expand Down
Loading

0 comments on commit 17c6aae

Please sign in to comment.