Skip to content

Commit 5de7ae5

Browse files
committed
feat: add commitlint and clean up ESLint warnings
Add conventional commit enforcement via commitlint with a commit-msg husky hook. Suppress no-explicit-any in test files since test mocks legitimately need type flexibility. Fix npm audit safe vulnerabilities. - Add commitlint with @commitlint/config-conventional - Add .husky/commit-msg hook for commit message validation - Disable no-explicit-any rule for test files in ESLint config - Add inline eslint-disable for inquirer mixed-type choices array - Run npm audit fix for resolvable vulnerabilities
1 parent c8eafdc commit 5de7ae5

6 files changed

Lines changed: 456 additions & 13 deletions

File tree

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit "$1"

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+
};

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,10 @@ module.exports = [
4242
'no-console': 'off',
4343
},
4444
},
45+
{
46+
files: ['src/__tests__/**/*.ts'],
47+
rules: {
48+
'@typescript-eslint/no-explicit-any': 'off',
49+
},
50+
},
4551
];

0 commit comments

Comments
 (0)