Skip to content

Commit

Permalink
Add support for namespaced rules (#439)
Browse files Browse the repository at this point in the history
* support namespaced rules

* support `primaryOptionArray`
  • Loading branch information
Mouvedia authored Nov 28, 2024
1 parent 05d4847 commit 2657f29
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/schema/stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5152,6 +5152,35 @@
]
}
},
"patternProperties": {
"@[a-z\\d][\\w.-]+/.+": {
"oneOf": [
{
"oneOf": [
{ "const": true },
{ "type": ["null", "string", "number", "object", "array"] }
]
},
{
"type": "array",
"minItems": 1,
"maxItems": 2,
"prefixItems": [
{
"oneOf": [
{ "const": true },
{ "type": ["null", "string", "number", "object", "array"] }
]
},
{
"type": "object",
"allOf": [{ "$ref": "#/$defs/commonOptions" }]
}
]
}
]
}
},
"additionalProperties": false
}
}
Expand Down

0 comments on commit 2657f29

Please sign in to comment.