markuplint

An HTML linter for all markup developers.

MIT License

Downloads
60K
Stars
533
Committers
36
markuplint - v2.0.0

Published by YusukeHirao almost 3 years ago

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.
markuplint - v1.11.4

Published by YusukeHirao about 3 years ago

Fixed

  • #254 Fix not to warn the HTML native attribute in the component.
markuplint - v1.11.3

Published by YusukeHirao about 3 years ago

Fixed

  • #245 Fix to wrong detect specific block in the title element.
markuplint - v1.11.2

Published by YusukeHirao about 3 years ago

Fixed

  • Fixed to replace the mask from attributes.
  • #239: Fixed typo (@josa42)
markuplint - v1.11.1

Published by YusukeHirao over 3 years ago

Fixed

markuplint - v1.10.1

Published by YusukeHirao over 3 years ago

Fixed

  • #217 Fixed to use promise style fs.writeFile API instead.
  • #218 Fixed to can use the aria-hidden=true when not use the hidden attribute.
markuplint - v1.9.1

Published by YusukeHirao over 3 years ago

Fixed

  • [#195] Fixed to ignore duplicatable attributes and directives.
  • [#197] Fixed the specs according to MDN docs that latest.
markuplint - v1.9.0

Published by YusukeHirao over 3 years ago

Changes

Fixed

  • [#191] Fixed auto-loading third-party rules (@JounQin)
markuplint - v1.8.1

Published by YusukeHirao over 3 years ago

Fixed

  • [#188] Fix to don't evaluate dynamic values on class-naming rule.
markuplint - v1.8.0

Published by YusukeHirao over 3 years ago

Changes

  • [#185][#187][#186] Add @markuplint/react-spec.
  • Changed some inner API for @markuplint/jsx-parser and @markuplint/react-spec.

Fixed

  • Fixed some problems for @markuplint/jsx-parser and @markuplint/react-spec.
markuplint - v1.7.3

Published by YusukeHirao over 3 years ago

Fixed

  • [#184] Fix to don't freeze with run CLI from a sub-process

Changed

  • [#183] Add lint-staged
markuplint - v1.7.2

Published by YusukeHirao over 3 years ago

Fixed

  • [#175] Fix: Failed to extract some JSXElement and JSXFragment. (@markuplint/jsx-parser)
  • [#176] Tidy up dependencies.
markuplint - v1.7.1

Published by YusukeHirao over 3 years ago

Changes

  • [#147] Added the --init option to CLI
  • [#156] JSX Support (@markuplint/jsx-parser)
  • [#159] minimal sync API support for the third party (@JounQin)
  • [#167] Add the extension matching for VSCode extension

Fixed

  • [#170] Fix there is an empty line when using the problemOnly option on CLI
  • [#171] Fix the evaluation of the attribute duplication
  • [#162] Fix: testlint message line is also 1 based (@markuplint/rule-textlint) (@JounQin)
markuplint - v1.7.0

Published by YusukeHirao over 3 years ago

Don't use this version.

markuplint - v1.6.1

Published by YusukeHirao over 3 years ago

Fixed bugs

  • #141 Fix: Cannot disable when set false from "nodeRules" or "childNodeRules"
  • #139 Fix missing ml-ast package error at parser-utils
markuplint - v1.6.0

Published by YusukeHirao over 3 years ago

Improved the parser and added supporting some langs/templates.

  • Moved utility functions for the parser from @markuplint/ml-ast to @markuplint/parser-utils.
  • Added @markuplint/php-parser.
  • Added @markuplint/erb-parser.
  • Added @markuplint/ejs-parser.
  • Added @markuplint/nunjucks-parser.
  • Added @markuplint/mustache-parser.
  • Added @markuplint/liquid-parser.
markuplint - v1.5.0

Published by YusukeHirao over 3 years ago

  • Added the portal element (<portal>) to html-spec.
  • Removed the command element (<command>) and the element element (<element>) from html-spec because they were removed from MDN docs.
  • Fixed the type of the dialog element's the open attribute from string to boolean.
markuplint - v1.4.0

Published by YusukeHirao almost 4 years ago

  • Add the ignoreFrontMatter option to parserOptions. (See website)
markuplint - v1.3.1

Published by YusukeHirao almost 4 years ago

  • #124 Fixed a critical issue that throws an exception if markup specific elements when using the wai-aria rule.
  • Fixed some behaviors of rules affect for WAI-ARIA.
  • Fixed some properties and types on schema.json.
  • Updated the HTML specs.
  • Updated some documents.
markuplint - v1.3.0

Published by YusukeHirao almost 4 years ago

  • #113 Added the new rule wai-aria.
  • Updated dependencies.
  • Updated HTML specs.
Package Rankings
Top 3.56% on Npmjs.org
Badges
Extracted from project README
Project Status: Active – The project has reached a stable, usable state and is being actively developed. Gitter npm version npm version npm version npm version npm version npm version npm version npm version npm version npm version npm version npm version npm version
Related Projects