Skip to content

Commit 94b77c1

Browse files
committed
build: add commit hooks
1 parent a0df8e1 commit 94b77c1

File tree

6 files changed

+1130
-138
lines changed

6 files changed

+1130
-138
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ module.exports = {
2222
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
2323
],
2424
rules: {
25+
'no-unused-vars': 'off',
26+
'@typescript-eslint/no-unused-vars': ['error'],
2527
'@typescript-eslint/explicit-module-boundary-types': 'off',
2628
'@typescript-eslint/no-explicit-any': 'off',
2729
'@typescript-eslint/no-non-null-assertion': 'off',

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

commitlint.config.js

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

0 commit comments

Comments
 (0)