chore(ci): added commitlint in runnable npm command

This commit is contained in:
Corentin Thomasset 2021-05-21 23:20:04 +02:00
parent f7378dc042
commit 0e9c53bd72
No known key found for this signature in database
GPG key ID: DBD997E935996158
4 changed files with 843 additions and 9 deletions

View file

@ -7,8 +7,9 @@
"build": "npm run generate",
"start": "nuxt-ts start",
"generate": "nuxt-ts generate",
"lint:commit": "commitlint --from $(git rev-list --max-parents=0 HEAD)",
"lint:js": "eslint --ext .js,.vue --ignore-path .gitignore .",
"lint": "npm run lint:js",
"lint": "npm run lint:js && npm run lint:commit",
"test": "jest"
},
"dependencies": {
@ -31,6 +32,8 @@
"vuetify-toast-snackbar": "^0.6.1"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@nuxt/types": "^2.15.6",
"@nuxt/typescript-build": "^2.1.0",
"@nuxtjs/eslint-config": "^3.1.0",