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
The rule was not correctly parsing the configuration from .oxlintrc.json.
When rules are configured with options like:
{
"rules": {
"unicorn/no-useless-undefined": ["error", { "checkArguments": false }]
}
}
The config system passes the options as an array containing all elements
after the severity: [{ "checkArguments": false }]
The from_configuration method was trying to access properties directly
on the array instead of getting the first element. This fix uses
value.get(0) to extract the options object from the array, matching
the pattern used by all other rules in the codebase.
Also updated the test configuration helpers to use the correct array
format, consistent with other rules' tests.
Fixes#14368
0 commit comments