Skip to content

Commit 19aa272

Browse files
committed
chore: commitlint to check all new commits
1 parent 86034b8 commit 19aa272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"build": "tsc",
3030
"dev": "tsc-watch --project tsconfig.json --onSuccess 'node --inspect .'",
3131
"debug": "tsc-watch --project tsconfig.json --onSuccess 'node --inspect-brk .'",
32-
"lint": "npm run lint:commits && npm run lint:eslint",
32+
"lint": "npm run lint:commit && npm run lint:eslint",
3333
"lint:eslint": "eslint \"src/**/*.ts\" && (cd test && eslint \"**/*.ts\")",
34-
"lint:commits": "commitlint --from=HEAD~5",
34+
"lint:commit": "commitlint --from=$(git rev-parse origin/staging)",
3535
"format": "prettier --write '{src,test}/**/*.{js,ts,json,yml}'",
3636
"format:check": "prettier --check '{src,test}/**/*.{js,ts,json,yml}'"
3737
},

0 commit comments

Comments
 (0)