How to use the gatsby-transformer-react-docgen/doclets.cleanDoclets function in gatsby-transformer-react-docgen

To help you get started, we’ve selected a few gatsby-transformer-react-docgen examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-bootstrap / react-bootstrap / www / gatsby-config.js View on Github external
docs._props.forEach((_, name) => {
              if (defaultDescriptions[name]) {
                let prop = docs.getPropDescriptor(name);
                let dflt = defaultDescriptions[name];

                if (dflt && !cleanDoclets(prop.description))
                  prop.description = `${dflt}\n${prop.description}`;
              }
            });
          },

gatsby-transformer-react-docgen

Expose React component metadata and prop information as GraphQL types

MIT
Latest version published 2 months ago

Package Health Score

87 / 100
Full package analysis