[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:
Jorge Cabiedes 2025-09-09 11:18:37 -07:00 committed by GitHub
parent eec50b17b3
commit 1836b46fff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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};