How to use @commitlint/config-angular-type-enum - 2 common examples

To help you get started, we’ve selected a few @commitlint/config-angular-type-enum examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github conventional-changelog / commitlint / @commitlint / config-angular / index.js View on Github external
module.exports = {
	rules: {
		'body-leading-blank': [1, 'always'],
		'footer-leading-blank': [1, 'always'],
		'header-max-length': [2, 'always', 72],
		'scope-case': [2, 'always', 'lower-case'],
		'subject-case': [
			2,
			'never',
			['sentence-case', 'start-case', 'pascal-case', 'upper-case']
		],
		'subject-empty': [2, 'never'],
		'subject-full-stop': [2, 'never', '.'],
		'type-case': [2, 'always', 'lower-case'],
		'type-empty': [2, 'never'],
		'type-enum': typeEnum.rules['type-enum']
	}
};
github conventional-changelog / commitlint / @commitlint / config-angular / index.js View on Github external
module.exports = {
	rules: {
		'body-leading-blank': [1, 'always'],
		'footer-leading-blank': [1, 'always'],
		'header-max-length': [2, 'always', 72],
		'scope-case': [2, 'always', 'lower-case'],
		'subject-case': [
			2,
			'always',
			['camel-case', 'kebab-case', 'lower-case', 'snake-case']
		],
		'subject-empty': [2, 'never'],
		'subject-full-stop': [2, 'never', '.'],
		'type-case': [2, 'always', 'lower-case'],
		'type-empty': [2, 'never'],
		'type-enum': typeEnum.rules['type-enum']
	}
};

@commitlint/config-angular-type-enum

Shareable commitlint config enforcing the angular commit convention types

MIT
Latest version published 2 months ago

Package Health Score

98 / 100
Full package analysis

Popular @commitlint/config-angular-type-enum functions