Skip to content

Commit

Permalink
feat: define recommended ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Quadflieg committed Jul 10, 2020
1 parent 7129131 commit cf81922
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,21 @@ const HTMLHINT_LEGACY = 'htmlhint:legacy'

const DEFAULT_RULESETS: Record<string, Ruleset> = {
[HTMLHINT_RECOMMENDED]: {
// TODO: Define recommended rules
'alt-require': 'warn',
'attr-lowercase': 'warn',
'attr-no-duplication': 'error',
'attr-no-unnecessary-whitespace': 'warn',
'attr-unsafe-chars': 'warn',
'attr-value-double-quotes': 'warn',
'id-class-ad-disabled': 'warn',
'id-unique': 'error',
'space-tab-mixed-disabled': 'warn',
'spec-char-escape': 'warn',
'src-not-empty': 'error',
'tag-pair': 'warn',
'tagname-lowercase': 'warn',
'tagname-specialchars': 'error',
'title-require': 'warn',
},
[HTMLHINT_LEGACY]: {
'attr-lowercase': 'error',
Expand Down

0 comments on commit cf81922

Please sign in to comment.