v2.0.0
New features
Added new rules
disallowed-element
end-tag
ineffective-attr
no-boolean-attr-value
no-default-value
no-hard-code-id
no-refer-to-non-existent-id
no-use-event-handler-attr
required-element
Improved configuration
- The
extends
option supports plugins.- Provides
markuplint:recommended
.
- Provides
- 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.