mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
feat(linter): backward compability for react-hooks and deepscan plugins (#3334)
closes #3317
This commit is contained in:
parent
a23bbf9016
commit
e4b3a3c06a
1 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ fn parse_rule_key(name: &str) -> (String, String) {
|
|||
"react-perf" => ("react_perf", rule_name),
|
||||
// e.g. "@next/next/google-font-display"
|
||||
"@next" => ("nextjs", rule_name.trim_start_matches("next/")),
|
||||
// For backwards compatibility, react hook rules reside in the react plugin.
|
||||
"react-hooks" => ("react", rule_name),
|
||||
// For backwards compatibility, deepscan rules reside in the oxc plugin.
|
||||
"deepscan" => ("oxc", rule_name),
|
||||
_ => (plugin_name, rule_name),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue