diff --git a/src/rules/no-anonymous-default-export.js b/src/rules/no-anonymous-default-export.js index 06ea854b3..59a3cbfda 100644 --- a/src/rules/no-anonymous-default-export.js +++ b/src/rules/no-anonymous-default-export.js @@ -60,16 +60,10 @@ const defs = { }, }; -const schemaProperties = Object.keys(defs) - .map((key) => defs[key]) - .reduce((acc, def) => { - acc[def.option] = { - description: def.description, - type: 'boolean', - }; - - return acc; - }, {}); +const schemaProperties = fromEntries(values(defs).map((def) => [def.option, { + description: def.description, + type: 'boolean', +}])); const defaults = fromEntries(values(defs).map((def) => [def.option, has(def, 'default') ? def.default : false]));