Skip to content

v2.0.0

Compare
Choose a tag to compare
@YusukeHirao YusukeHirao released this 12 Jan 12:50
· 3426 commits to main since this release

New features

Added new rules

Improved configuration

  • The extends option supports plugins.
    • Provides markuplint:recommended.
  • Added the plugins option.
  • The selector property supports Selector Level 3 and 4.
  • Added the regexSelector property.

Added new CLI options

Long Option Short Option Argument Default Description
--config -c File path none A configuration file path
--no-search-config none none false No search a configure file automatically.
--ignore-ext none none false Evaluate files that are received even though the type of extension.
--no-import-preset-rules none none false No import preset rules.
--locale none none OS setting Locale of the message of violation.
--create-rule none none none Adds the scaffold of a custom rule to any project.

Renewed API

Provides MLEngine class newly.
Recommends using it instead of lint function.
lint function became to be deprecated.

Others

  • Supports SVG.
  • Improved checking values of attributes use @markuplint/types.
  • Improved performance using cache.
  • Became to do output results one by one without waiting for the completion of all evaluations when CLI runs.