Browse Source

build: add git hooks and commit lint

master
Kiko Beats 3 years ago
parent
commit
02d15129f3
No known key found for this signature in database GPG Key ID: 8FA93B22CCF04B96
  1. 24
      package.json
  2. 1
      packages/keyv-postgres/package.json

24
package.json

@ -92,7 +92,11 @@
"value" "value"
], ],
"devDependencies": { "devDependencies": {
"@commitlint/cli": "latest",
"@commitlint/config-conventional": "latest",
"lerna": "latest", "lerna": "latest",
"lint-staged": "latest",
"simple-git-hooks": "latest",
"standard": "latest" "standard": "latest"
}, },
"engines": { "engines": {
@ -114,6 +118,26 @@
"update:check": "lerna exec ncu -- --errorLevel 2 && ncu -- --errorLevel 2" "update:check": "lerna exec ncu -- --errorLevel 2 && ncu -- --errorLevel 2"
}, },
"private": "true", "private": "true",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.js": [
"prettier-standard"
],
"*.md": [
"standard-markdown"
],
"package.json": [
"finepack"
]
},
"simple-git-hooks": {
"commit-msg": "npx commitlint --edit",
"pre-commit": "npx lint-staged"
},
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
] ]

1
packages/keyv-postgres/package.json

@ -30,6 +30,7 @@
"pg": "8.6.0" "pg": "8.6.0"
}, },
"devDependencies": { "devDependencies": {
"@keyvhq/keyv-test-suite": "latest",
"ava": "latest", "ava": "latest",
"nyc": "latest" "nyc": "latest"
}, },

Loading…
Cancel
Save