mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[compiler] Have react-compiler eslint plugin return a RuleModule (#34421)
Eslint is expecting a map of [string] => RuleModule. Before we were
passing {rule: RuleModule, severity: ErrorSeverity} which was breaking
legacy Eslint configurations
This commit is contained in:
parent
eec50b17b3
commit
1836b46fff
|
|
@ -34,4 +34,8 @@ const configs = {
|
|||
},
|
||||
};
|
||||
|
||||
export {configs, allRules as rules, meta};
|
||||
const rules = Object.fromEntries(
|
||||
Object.entries(allRules).map(([name, {rule}]) => [name, rule]),
|
||||
);
|
||||
|
||||
export {configs, rules, meta};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user