Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4188da2

Browse files
committed
chore: update husky, add commit linting
updated to husky@beta and add @commitlint/cli to automatically lint commit messages with nicewarnings if something fails
1 parent57f5fbf commit4188da2

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

‎commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports={
2+
extends:['@commitlint/config-conventional']
3+
}

‎package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"dev":"rollup -c build/config.js -w --o samples/app/nativescript-vue.js --environment TARGET:nativescript-vue",
1111
"build":"node build/build.js",
1212
"build:docs":"cd docs && npm run build",
13-
"precommit":"lint-staged",
1413
"prettier":"prettier --no-semi --single-quote --write\"{{platform,__test__}/**/*.js,samples/app/*.js}\"",
1514
"release":"node build/releaser.js",
1615
"commit":"git-cz"
@@ -52,12 +51,14 @@
5251
"tns-core-modules":"^3.0.0"
5352
},
5453
"devDependencies": {
54+
"@commitlint/cli":"^5.2.6",
55+
"@commitlint/config-conventional":"^5.2.3",
5556
"babel-jest":"^19.0.0",
5657
"babel-preset-env":"^1.6.1",
5758
"chalk":"^2.3.0",
5859
"commitizen":"^2.9.6",
5960
"cz-conventional-changelog":"^2.1.0",
60-
"husky":"^0.14.3",
61+
"husky":"^0.15.0-beta.16",
6162
"inquirer":"^3.3.0",
6263
"jest":"^19.0.2",
6364
"jest-junit":"^1.5.1",
@@ -86,6 +87,12 @@
8687
"semi":false,
8788
"singleQuote":true
8889
},
90+
"husky": {
91+
"hooks": {
92+
"pre-commit":"lint-staged",
93+
"commit-msg":"commitlint -e $GIT_PARAMS"
94+
}
95+
},
8996
"lint-staged": {
9097
"linters": {
9198
"{{platform,__test__}/**/*.js,samples/app/*.js}": [

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp