Custom configuration for commitlint

Job ID: 36691591

Budget: $10 – $20 USD

I need a custom configuration for commitlint 'https://commitlint.js.org/' to enforce the following

In general the pattern mostly looks like this:

type(scope): subject

type - is required and types can be defined in the config, lowercase is required.

(scope) is optional but must not be blank () or blank with spaces ( ). if provided must be lowercase and from scopes defined in the config.

subject is required and must start with a leading space after the colon

Examples:

type(scope): subject - valid
type: subject - valid

type(): subject - not valid
type( ): subject - not valid
type(scope):subject - not valid
type:subject - not valid
Related categories: JavaScript Node.js JSON