How to use @commitlint/top-level - 1 common examples

To help you get started, we’ve selected a few @commitlint/top-level 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 / read / src / index.js View on Github external
async function getEditCommit(cwd, edit) {
	const top = await toplevel(cwd);

	if (typeof top !== 'string') {
		throw new TypeError(`Could not find git root from ${cwd}`);
	}

	const editFilePath = await getEditFilePath(top, edit);

	const editFile = await sander.readFile(editFilePath);
	return [`${editFile.toString('utf-8')}\n`];
}

@commitlint/top-level

Lint your commit messages

MIT
Latest version published 2 months ago

Package Health Score

100 / 100
Full package analysis

Popular @commitlint/top-level functions