github.com/nozzle/golangci-lint@v1.49.0-nz3/docs/src/@rocketseat/gatsby-theme-docs-core/util/with-default.js (about)

     1  module.exports = themeOptions => {
     2    const basePath = themeOptions.basePath || `/`;
     3    const configPath = themeOptions.configPath || `config`;
     4    const docsPath = themeOptions.docsPath || `docs`;
     5    const baseDir = themeOptions.baseDir || ``;
     6    const { githubUrl } = themeOptions;
     7  
     8    return {
     9      basePath,
    10      configPath,
    11      docsPath,
    12      baseDir,
    13      githubUrl,
    14    };
    15  };