1.2.5 • Published 5 months ago

@diplodoc/yfmlint v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

NPM version

YFM syntax linter

Usage

npm install @diplodoc/yfmlint
import {yfmlint, log} from '@diplodoc/yfmlint';

const errors = await yfmlint(content, path, options);

if (errors) {
  resourcemap(errors);
  log(errors, logger);
}

YFM rules

All markdownlint rules

YFM001 - Inline code line length

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).

YFM002 - No header found in the file for the link text

Tags: links

Aliases: no-header-found-for-link

This rule is triggered when there are no headers in the file referenced by the link.

YFM003 - Link is unreachable

Tags: links

Aliases: unreachable-link

This rule is triggered when there is no file referenced by the link.

YFM004 - Table not closed

Tags: table

Aliases: table-not-closed

This rule is triggered when table don't have close token.

YFM005 - Tab list not closed

Tags: tab

Aliases: tab-list-not-closed

This rule is triggered when tab list don't have close token.

YFM006 - Tab list not closed

Tags: term

Aliases: term-definition-duplicated

This rule is triggered when term definition duplicated.

1.2.5

5 months ago

1.2.4

6 months ago

1.2.3

6 months ago

1.2.2

7 months ago

1.2.1

8 months ago

1.2.0

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago