-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options-parser.ts
33 lines (30 loc) · 941 Bytes
/
options-parser.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* @file Interfaces - ParserOptions
* @module commitlint-config/interfaces/ParserOptions
*/
import type { ReferenceAction } from '#src/enums'
import type { NoteKeyword } from '#src/types'
import type * as parser from 'conventional-commits-parser'
/**
* Commit parser options.
*
* @see https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-commits-parser/README.md#options
*
* @extends {Required<parser.Options>}
*/
interface ParserOptions extends Required<parser.Options> {
commentChar: string
fieldPattern: RegExp
headerCorrespondence: string[]
headerPattern: RegExp
issuePrefixes: string[]
issuePrefixesCaseSensitive: boolean
mergeCorrespondence: null
mergePattern: null
noteKeywords: NoteKeyword[]
referenceActions: ReferenceAction[]
revertCorrespondence: string[]
revertPattern: RegExp
warn: Console['warn']
}
export type { ParserOptions as default }