### What version of Oxlint are you using? latest ### What command did you run? _No response_ ### What does your `.oxlintrc.json` (or `oxlint.config.ts`) config file look like? ```jsonc { "categories": { "correctness": "off" }, "plugins": ["react"], "rules": { "no-use-before-define": ["error", "nofunc"] } } ``` ### What happened? ESLint upstream rules supports as a second argument a string too. https://eslint.org/docs/latest/rules/no-use-before-define#nofunc This will remap to the config-object `functions` property: https://github.com/eslint/eslint/blob/243b8c56014bbbe63771185b0731d8dd4d1316e9/lib/rules/no-use-before-define.js#L28-L44 We have pass-tests for this, but not failing one. https://github.com/oxc-project/oxc/blob/main/crates/oxc_linter/src/rules/eslint/no_use_before_define.rs
What version of Oxlint are you using?
latest
What command did you run?
No response
What does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ "categories": { "correctness": "off" }, "plugins": ["react"], "rules": { "no-use-before-define": ["error", "nofunc"] } }What happened?
ESLint upstream rules supports as a second argument a string too.
https://eslint.org/docs/latest/rules/no-use-before-define#nofunc
This will remap to the config-object
functionsproperty:https://github.com/eslint/eslint/blob/243b8c56014bbbe63771185b0731d8dd4d1316e9/lib/rules/no-use-before-define.js#L28-L44
We have pass-tests for this, but not failing one.
https://github.com/oxc-project/oxc/blob/main/crates/oxc_linter/src/rules/eslint/no_use_before_define.rs