Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 329 Bytes

reference-examples.md

File metadata and controls

20 lines (16 loc) · 329 Bytes

Examples

These examples show common usages of how commitlint can be configured.

Validate for issue/ticket numbers

In your package.json add:

  commitlint: {
    'rules': {
      'references-empty': [2, 'never'],
    },
    parserPreset: {
      parserOpts: {
        issuePrefixes: ['PROJ-']
      }
    },
  }