Skip to content

Commit

Permalink
Fix plugins type (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouvedia authored Jan 20, 2025
1 parent 8b38045 commit 10d1f74
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions src/schema/stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
},
"additionalProperties": false
},
"plugin": {
"pluginObject": {
"type": "object",
"properties": {
"ruleName": {
Expand All @@ -137,6 +137,25 @@
"rule": {}
},
"additionalProperties": false
},
"plugin": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"default": {
"$ref": "#/$defs/pluginObject"
}
},
"additionalProperties": false
},
{
"$ref": "#/$defs/pluginObject"
}
]
}
},
"type": "object",
Expand Down Expand Up @@ -206,23 +225,13 @@
"plugins": {
"oneOf": [
{
"type": "string"
"type": "array",
"items": {
"$ref": "#/$defs/plugin"
}
},
{
"oneOf": [
{
"type": "object",
"properties": {
"default": {
"$ref": "#/$defs/plugin"
}
},
"additionalProperties": false
},
{
"$ref": "#/$defs/plugin"
}
]
"$ref": "#/$defs/plugin"
}
]
},
Expand Down

0 comments on commit 10d1f74

Please sign in to comment.