Commits
Click on a commit to change the comparison rangefix(linter/no-useless-undefined): correctly respect `checkArguments` option (#14369)
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