Skip to content

Commit

Permalink
build: change commitlint config to ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed Feb 27, 2025
1 parent d12bbac commit 41cb645
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ node_modules
# Eslint
.eslintignore
.eslintrc.js
commitlint.config.js
commitlint.config.ts
.prettierignore
.prettierrc

Expand Down
3 changes: 0 additions & 3 deletions commitlint.config.js

This file was deleted.

15 changes: 15 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { UserConfig } from '@commitlint/types';

export default {
extends: ['@commitlint/config-angular'],
rules: {
'subject-max-length': [2, 'always', 120],
'scope-enum': [2, 'always', []],
'scope-empty': [2, 'always'],
'type-enum': [
2,
'always',
['build', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'release', 'revert', 'style', 'test'],
],
},
} satisfies UserConfig;

0 comments on commit 41cb645

Please sign in to comment.