Skip to content

Commit 5d513fe

Browse files
committed
thjs-122: * fix ci linting commitlint config
1 parent dcc3faa commit 5d513fe

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

commitlint.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type UserConfig } from '@commitlint/types';
1+
import { type SyncRule, type UserConfig } from '@commitlint/types';
22

33
import { ProjectPrefix } from './project.config.js';
44

@@ -32,13 +32,13 @@ const configuration: UserConfig = {
3232
plugins: [
3333
{
3434
rules: {
35-
'commit-message-match': ({ header }) => {
35+
'commit-message-match': (({ header }) => {
3636
if (!COMMIT_MESSAGE_REGEXP.test(header as string)) {
3737
return [false, COMMIT_MESSAGE_MATCH_RULE_MESSAGE];
3838
}
3939

4040
return [true];
41-
}
41+
}) as SyncRule
4242
}
4343
}
4444
],

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ const overridesConfigs = [
245245
rules: {
246246
'@typescript-eslint/explicit-function-return-type': ['off']
247247
}
248+
},
249+
{
250+
files: ['commitlint.config.ts'],
251+
rules: {
252+
'@typescript-eslint/no-magic-numbers': ['off']
253+
}
248254
}
249255
];
250256

0 commit comments

Comments
 (0)