File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1- import { type UserConfig } from '@commitlint/types' ;
1+ import { type SyncRule , type UserConfig } from '@commitlint/types' ;
22
33import { 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 ] ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments