Skip to content

Commit a639aec

Browse files
committed
fix: don't require capitalised DOCTYPE
it is case insensitive: https://html.spec.whatwg.org/multipage/syntax.html#the-doctype
1 parent d2fc625 commit a639aec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/content/en/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@ This module configures [`html-validate`](https://html-validate.org/) to automati
9494
rules: {
9595
'svg-focusable': 'off',
9696
'no-unknown-elements': 'error',
97-
// Conflicts or not needed when using prettier formatting
97+
// Conflicts or not needed as we use prettier formatting
9898
'void-style': 'off',
9999
'no-trailing-whitespace': 'off',
100100
// Conflict with Nuxt defaults
101101
'require-sri': 'off',
102102
'attribute-boolean-style': 'off',
103+
'doctype-style': 'off',
103104
// Unreasonable rule
104105
'no-inline-style': 'off'
105106
}

src/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const defaultHtmlValidateConfig: ConfigData = {
1616
// Conflict with Nuxt defaults
1717
'require-sri': 'off',
1818
'attribute-boolean-style': 'off',
19+
'doctype-style': 'off',
1920
// Unreasonable rule
2021
'no-inline-style': 'off'
2122
}

0 commit comments

Comments
 (0)