From 9d46dd5955891f2a43690440d032990b10f213dd Mon Sep 17 00:00:00 2001 From: levithomason Date: Fri, 1 Apr 2016 13:15:32 -0700 Subject: [PATCH] refactor(getDocgenInfo): prefix _meta variable --- docs/app/utils/getComponentDocInfo.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/app/utils/getComponentDocInfo.js b/docs/app/utils/getComponentDocInfo.js index 09858eb6f3..0fce17c23f 100644 --- a/docs/app/utils/getComponentDocInfo.js +++ b/docs/app/utils/getComponentDocInfo.js @@ -4,18 +4,18 @@ import docgenInfo from '../docgenInfo.json' /** * This util extracts and formats a doc object from docgenInfo.json for a single `component` and merges it with * the component's meta information. - * @param {string} meta Stardust component _meta object. + * @param {string} _meta Stardust component _meta object. * @returns {{}} Documentation object. */ -export default (meta) => { - const docPath = _.find(_.keys(docgenInfo), path => path.includes(`/${meta.name}.js`)) +export default (_meta) => { + const docPath = _.find(_.keys(docgenInfo), path => path.includes(`/${_meta.name}.js`)) const definition = docgenInfo[docPath] return { - name: meta.name, + name: _meta.name, path: docPath, - parent: meta.parent, - type: meta.type, + parent: _meta.parent, + type: _meta.type, docBlock: definition.docBlock, props: definition.props, }