npm install @diplodoc/yfmlint
import {yfmlint, log} from '@diplodoc/yfmlint';
const errors = await yfmlint(content, path, options);
if (errors) {
resourcemap(errors);
log(errors, logger);
}
Tags: line_length
Aliases: inline-code-length
Parameters: maximum
This rule is triggered when there are lines that are longer than the
configured value
(default: 100 characters).
Tags: links
Aliases: no-header-found-for-link
This rule is triggered when there are no headers in the file referenced by the link.
Tags: links
Aliases: unreachable-link
This rule is triggered when there is no file referenced by the link.
Tags: table
Aliases: table-not-closed
This rule is triggered when table don't have close token.
Tags: tab
Aliases: tab-list-not-closed
This rule is triggered when tab list don't have close token.