You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// default html-validate rules to use when none are passed
24
24
constdefaultRules={
25
-
extends: ['html-validate:recommended'],
26
-
rules: {
27
-
'attr-case': 'off',
28
-
'attr-quotes': 'off'
25
+
extends: ['html-validate:recommended'],// use the project's recommended rules, except...
26
+
rules: {// the defaults have some problems, so we're changing them
27
+
'attr-case': {// has to do with permitted case (uppercase or lowercase) for attributes
28
+
style: 'lowercase',// forces lowercase attributes
29
+
ignoreForeign: true// except in cases of non-HTML elements, e.g. <svg viewBox="0 0 100 100">
30
+
},
31
+
'attr-quotes': 'off',// allows single or double quotes
32
+
'no-conditional-comment': 'off',// conditional comments are still useful sometimes and they're technically valid html, so there's no reason to have this rule
33
+
'no-trailing-whitespace': 'off',// linters should enforce this, not validators
34
+
'prefer-button': 'off'// this rule incorrectly disallows <input type="submit"> https://gitlab.com/html-validate/html-validate/-/issues/90
0 commit comments