Environment information
What happened?
Given the following shared configuration:
{
"linter": {
"enabled": true,
"rules": {
"style": {
"useNamingConvention": {
"level": "on",
"options": {
"conventions": [{
"selector": { "kind": "variable", "scope": "global" },
"formats": ["CONSTANT_CASE"]
}]
}
}
}
}
}
}
If a user extends this configuration and set only the fix of the rule, then the inherited options is overrided by the default rule options.
{
"extends": ["shared.json"],
"linter": {
"enabled": true,
"rules": {
"style": {
"useNamingConvention": {
"level": "on",
"fix": "none"
}
}
}
}
}
This basically results in the following merged config:
{
"extends": ["shared.json"],
"linter": {
"enabled": true,
"rules": {
"style": {
"useNamingConvention": {
"level": "on",
"fix": "none",
"options": {}
}
}
}
}
}
Expected result
The merged configuration should be:
{
"extends": ["shared.json"],
"linter": {
"enabled": true,
"rules": {
"style": {
"useNamingConvention": {
"level": "on",
"fix": "none",
"options": {
"conventions": [{
"selector": { "kind": "variable", "scope": "global" },
"formats": ["CONSTANT_CASE"]
}]
}
}
}
}
}
}
Code of Conduct
Environment information
What happened?
Given the following shared configuration:
{ "linter": { "enabled": true, "rules": { "style": { "useNamingConvention": { "level": "on", "options": { "conventions": [{ "selector": { "kind": "variable", "scope": "global" }, "formats": ["CONSTANT_CASE"] }] } } } } } }If a user extends this configuration and set only the
fixof the rule, then the inheritedoptionsis overrided by the default ruleoptions.{ "extends": ["shared.json"], "linter": { "enabled": true, "rules": { "style": { "useNamingConvention": { "level": "on", "fix": "none" } } } } }This basically results in the following merged config:
{ "extends": ["shared.json"], "linter": { "enabled": true, "rules": { "style": { "useNamingConvention": { "level": "on", "fix": "none", "options": {} } } } } }Expected result
The merged configuration should be:
{ "extends": ["shared.json"], "linter": { "enabled": true, "rules": { "style": { "useNamingConvention": { "level": "on", "fix": "none", "options": { "conventions": [{ "selector": { "kind": "variable", "scope": "global" }, "formats": ["CONSTANT_CASE"] }] } } } } } }Code of Conduct