Type object
File match .htmlhintrc
Schema URL https://catalog.lintel.tools/schemas/schemastore/htmlhintrc/latest.json
Source https://www.schemastore.org/htmlhint.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

alt-require boolean

Alt of img must be present and alt of area[href] and input[type=image] must be set value.

Default: false
attr-lowercase boolean | string[]

Attribute name must be lowercase.

Default: false
attr-no-duplication boolean

The same attribute can't be specified twice.

Default: false
attr-sorted boolean

Attributes should be sorted in an order.

Default: false
attr-unsafe-chars boolean

Attribute value cannot use unsafe chars.

Default: false
attr-value-double-quotes boolean

Attribute value must be closed by double quotes.

Default: false
attr-value-no-duplication boolean | string[]

Class attributes should not contain duplicate values. Other attributes can be checked via configuration.

Default: false
attr-value-not-empty boolean

Attribute must set value.

Default: false
attr-value-single-quotes boolean

Attribute value must be closed by single quotes.

Default: false
attr-whitespace boolean

No leading or trailing spaces inside attribute values.

Default: false
button-type-require boolean

The type attribute of a button element must be present with a valid value: button, submit, or reset.

Default: false
doctype-first boolean

Doctype must be first.

Default: false
doctype-html5 boolean

Doctype must be HTML5.

Default: false
frame-title-require boolean

A frame or iframe element must have an accessible name.

Default: false
form-method-require boolean

The method attribute of a form element must be present.

Default: false
h1-require boolean

A H1 heading element is required in HTML documents.

Default: false
head-script-disabled enum

The script tag cannot be used in head.

Default: false
Values: false true "allow-non-blocking"
href-abs-or-rel enum

Href must be absolute or relative.

Default: false
Values: false "abs" "rel"
html-lang-require boolean

The lang attribute of an element must be present and should be valid.

Default: false
id-class-ad-disabled boolean

Id and class cannot use ad keyword, it will be blocked by adblock software.

Default: false
id-class-value enum

Id and class value must meet some rules: underline, dash, hump.

Default: false
Values: false "underline" "dash" "hump"
id-unique boolean

ID attributes must be unique in the document.

Default: false
inline-script-disabled boolean

Inline script cannot be used.

Default: false
inline-style-disabled boolean

Inline style cannot be used.

Default: false
main-require boolean

A main element is required within the tag.

Default: false
meta-charset-require boolean

A meta charset is required within the tag.

Default: false
meta-description-require boolean

A meta description is required within the tag.

Default: false
meta-viewport-require boolean

A meta viewport is required within the tag.

Default: false
space-tab-mixed-disabled enum

Spaces and tabs cannot be mixed in front of line.

Default: false
Values: false "space" "tab"
spec-char-escape boolean

Special characters must be escaped.

Default: false
src-not-empty boolean

Src of img(script,link) must set value. Empty of src will visit current page twice.

Default: false
style-disabled boolean

Style tag cannot be used.

Default: false
tag-no-obsolete boolean

Disallows the use of obsolete HTML tags.

Default: false
tag-pair boolean

Tag must be paired.

Default: false
tag-self-close boolean

The empty tag must be self-closed.

Default: false
tagname-lowercase boolean

Tagname must be lowercase.

Default: false
tagname-specialchars boolean

Tagname must not contain any characters beside letters, numbers, ”-”, ”:” or ”_”.

Default: false
tags-check boolean

Check if particular tags are self-closing or must include or exclude particular tags.

Default: false
title-require boolean

title must be present in head tag.

Default: false