4.5.0 • Published 5 days ago

@markuplint/config-presets v4.5.0

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

@markuplint/config-presets

npm version

Usage

To the extends property of the configuration, specify like below:

{
  "extends": ["markuplint:recommended"]
}

You can choose some presets appropriately for your preference.

{
  "extends": ["markuplint:html-standard", "markuplint:a11y"]
}

Ruleset Mapping

RulesetDescriptionrecommendedrecommended-vuerecommended-svelterecommended-static-htmlrecommended-reacta11ycode-styleshtml-standardperformancerdfasecurity
Must not duplicate IDBe able to avoid problems in assistive technologies from the viewpoint of machine readability.
Disallow accesskey attr
tabindex attr only -1 or 0
<label> should have control
Use landmark
Popover trigger and target must be adjacent
No ambiguous Navigable Target Names
No consecutive <br>
No refer to no existent ID
Require accessible name
Require <h1>
Align row and column
Use <ul>
Conform to WAI-ARIA
Require <html lang>
Require <abbr title>
Require <track>
Require <video muted>
No merge cells
<summary> no contains interactive contentsThere is a case where an assistive technology can't access contents, or contents don't propagate a mouse event to <summary>.
Disallow autofocus attr to except in the dialog scopeDon't take away a focus to forced. However, the dialog element and its descendants allow it.
No duplicate attrThe parser ignores all such duplicate occurrences of the attribute.
No use deprecated attrYou should not use deprecated attributes from the viewpoint of compatibility.
No use deprecated elementYou should not use deprecated elements from the viewpoint of compatibility.
Require doctypeIt has the effect of avoiding quirks mode.
Must not skip heading levels
No use ineffective attr
No duplicate names in <dl>Within a single dl element, there should not be more than one dt element for each name.
No use orphaned end tag
Allow only permitted contents
Need placeholder label option
Require the datetime attribute if the content of the time element is invalid
Specify required attr
Specify charset=UTF-8
No use <small> as subheadingsShould not use it in <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>.
No use <caption> within <figure>When <table> is the only content in <figure> other than <figcaption>, <caption> should be omitted in favor of <figcaption>.
Require title attr in <input pattern>When an <input> element has a pattern attribute specified, authors should include a title attribute to give a description of the pattern.
No nested same <details> name group
Require charset=UTF-8
Require defer attrShould load and parse scripts lazily to avoid render-blocking.
Require aspect-ratioRequire width and height attr with <img> to avoid Cumulative Layout Shift
Require loading <iframe> lazilyRequire loading=lazy with <iframe> to avoid render-blocking that causes loading if its element is out of the viewport.
Allow property attr with <meta>Be able to use Open-Graph etc.
No hard coding IDThe component that hard-coded ID cannot mount to an app duplicated because the IDs must be unique in a document. Recommend to specify dynamic IDs to avoid doing that.
Use character reference
No omit end-tagRecommend to write an end-tag always because it is too difficult for a human decide an element is end-tag omittable.

Install

markuplint package includes this package.

$ npm install @markuplint/config-presets

$ yarn add @markuplint/config-presets
4.5.0-alpha.0

5 days ago

4.5.0

5 days ago

4.4.0

25 days ago

4.3.0

1 month ago

4.2.0

2 months ago

4.2.1-dev.1

1 month ago

4.1.1-alpha.0

2 months ago

4.1.0

3 months ago

4.0.1

3 months ago

4.0.0-rc.1

3 months ago

4.0.0

3 months ago

4.0.0-alpha.12

3 months ago

4.0.0-rc.0

3 months ago

4.0.0-alpha.11

3 months ago

4.0.0-alpha.10

3 months ago

4.0.0-dev.23

3 months ago

4.0.0-dev.12

4 months ago

4.0.0-alpha.9

4 months ago

4.0.0-alpha.8

4 months ago

4.0.0-alpha.7

4 months ago

4.0.0-dev.20

5 months ago

4.0.0-dev.10

5 months ago

4.0.0-alpha.5

7 months ago

4.0.0-alpha.6

5 months ago

4.0.0-alpha.3

7 months ago

4.0.0-alpha.4

7 months ago

4.0.0-alpha.1

9 months ago

3.9.0

7 months ago

3.0.0-dev.300

7 months ago

4.0.0-alpha.2

7 months ago

3.8.0

10 months ago

4.0.0-dev.0

5 months ago

3.0.0-dev.290

7 months ago

4.0.0-dev.28

7 months ago

3.8.1

8 months ago

3.0.0-dev.186

1 year ago

3.7.0

11 months ago

3.6.1

1 year ago

3.4.0

1 year ago

3.6.0

1 year ago

3.5.0

1 year ago

3.0.0-dev.96

1 year ago

3.0.0-dev.95

1 year ago

3.0.0-dev.177

1 year ago

3.0.0-dev.176

1 year ago

3.3.0

1 year ago

3.0.0-alpha.6

1 year ago

3.0.0-alpha.5

1 year ago

3.0.0-dev.43

1 year ago

3.0.0-dev.42

1 year ago

3.0.0-dev.40

1 year ago

3.2.0

1 year ago

3.1.0

1 year ago

3.0.0-dev.38

1 year ago

3.0.0-rc.2

1 year ago

3.0.0-rc.1

1 year ago

3.0.0-rc.0

1 year ago

3.0.0-rc.5

1 year ago

3.0.0-rc.4

1 year ago

3.0.0-rc.3

1 year ago

3.0.0-alpha.27

1 year ago

3.0.0-dev.50.40

1 year ago

3.0.0-dev.54

1 year ago

3.0.0-dev.51

1 year ago

3.0.0-alpha.1

2 years ago

3.0.0-alpha.3

2 years ago

3.0.0-alpha.2

2 years ago

3.0.0-alpha.4

2 years ago

3.0.0-alpha.0

2 years ago