Skip to content

Commit 5ec5687

Browse files
author
Christopher Quadflieg
committed
feat: define recommended ruleset
1 parent 96de93c commit 5ec5687

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/core/core.ts

+15-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,21 @@ const HTMLHINT_LEGACY = 'htmlhint:legacy'
2020

2121
const DEFAULT_RULESETS: Record<string, Ruleset> = {
2222
[HTMLHINT_RECOMMENDED]: {
23-
// TODO: Define recommended rules
23+
'alt-require': 'warn',
24+
'attr-lowercase': 'warn',
25+
'attr-no-duplication': 'error',
26+
'attr-no-unnecessary-whitespace': 'warn',
27+
'attr-unsafe-chars': 'warn',
28+
'attr-value-double-quotes': 'warn',
29+
'id-class-ad-disabled': 'warn',
30+
'id-unique': 'error',
31+
'space-tab-mixed-disabled': 'warn',
32+
'spec-char-escape': 'warn',
33+
'src-not-empty': 'error',
34+
'tag-pair': 'warn',
35+
'tagname-lowercase': 'warn',
36+
'tagname-specialchars': 'error',
37+
'title-require': 'warn',
2438
},
2539
[HTMLHINT_LEGACY]: {
2640
'attr-lowercase': 'error',

0 commit comments

Comments
 (0)