How to use the @commitlint/is-ignored function in @commitlint/is-ignored

To help you get started, we’ve selected a few @commitlint/is-ignored 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 / lint / src / index.js View on Github external
export default async (message, rules = {}, opts = {}) => {
	// Found a wildcard match, skip
	if (
		isIgnored(message, {defaults: opts.defaultIgnores, ignores: opts.ignores})
	) {
		return {
			valid: true,
			errors: [],
			warnings: [],
			input: message
		};
	}

	// Parse the commit message
	const parsed = await parse(message, undefined, opts.parserOpts);

	const mergedImplementations = Object.assign({}, implementations);
	if (opts.plugins) {
		values(opts.plugins).forEach(plugin => {
			if (plugin.rules) {

@commitlint/is-ignored

Lint your commit messages

MIT
Latest version published 1 day ago

Package Health Score

98 / 100
Full package analysis

Popular @commitlint/is-ignored functions