Skip to content

core: references not found in header #115

@marionebl

Description

@marionebl

Copied from https://github.com/marionebl/commitlint/pull/76#issuecomment-343773042

Hi @marionebl, thanks for that! I've followed the examples and I couldn't get it to work. Maybe you can help?

// commitlint.config.js

module.exports = {
  'extends': [
    '@commitlint/config-angular',
    '@commitlint/config-lerna-scopes'
  ],
  'parserPreset': './parser-preset',
  'rules': {
    'references-empty': [2, 'never'],
  }
}

// parser-preset.js

module.exports = {
    parserOpts: {
        issuePrefixes: ['TEST-']
    }
};

When I run

echo "chore: TEST-1 Test Message" | ./node_modules/.bin/commitlint

I get ✖ references may not be empty [references-empty]

Edit: Removed unrelated issue description

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions