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`];


Lint your commit messages

Latest version published 5 months ago

Package Health Score

98 / 100
Full package analysis

Popular @commitlint/top-level functions