Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/schemas/json/htmlhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"attr-lowercase": {
"description": "Attribute name must be lowercase.",
"type": "boolean",
"anyOf": [{ "type": "boolean" }, { "type": "array" }],
"default": false
},
"attr-no-duplication": {
Comment on lines +12 to 15
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The array type definition is incomplete. According to the HTMLHint documentation, the array should contain attribute names as strings. Add an items schema to specify that array elements should be strings.

Copilot uses AI. Check for mistakes.
Comment on lines +12 to 15
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test coverage should be added for the new array type functionality. The existing test file only covers boolean values. Add test cases showing the array usage for both attr-lowercase and attr-value-no-duplication rules.

Copilot uses AI. Check for mistakes.
Expand All @@ -34,7 +34,7 @@
},
"attr-value-no-duplication": {
"description": "Class attributes should not contain duplicate values. Other attributes can be checked via configuration.",
"type": "boolean",
"anyOf": [{ "type": "boolean" }, { "type": "array" }],
"default": false
},
"attr-value-not-empty": {
Expand Down