Skip to content

Commit 61ff83b

Browse files
committed
Lint fix (purge getIncludePattern)
1 parent c55dce4 commit 61ff83b

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

packages/webdoc-cli/src/config.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -105,30 +105,6 @@ export function loadConfig(file: string): ConfigSchema {
105105
return config;
106106
}
107107

108-
export function getIncludePattern(config: ConfigSchema): string[] {
109-
const source = config.source;
110-
111-
if (typeof source !== "undefined") {
112-
if (typeof source.includePattern !== "undefined") {
113-
if (Array.isArray(source.includePattern)) {
114-
return source.includePattern;
115-
} else if (typeof source.includePattern === "string") {
116-
return [source.includePattern];
117-
}
118-
}
119-
120-
if (typeof source.include !== "undefined") {
121-
if (Array.isArray(source.include)) {
122-
return source.include;
123-
} else if (typeof source.include === "string") {
124-
return [source.include];
125-
}
126-
}
127-
}
128-
129-
return [];
130-
}
131-
132108
export function getTemplate(config: ConfigSchema): string {
133109
if (config.opts && config.opts.template) {
134110
return config.opts.template;

packages/webdoc-cli/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function main(argv: yargs.Argv) {
5959
global.Webdoc = global.Webdoc || {};
6060
registerWebdocParser();// global.Webdoc.Parser
6161

62-
const {loadConfig, getIncludePattern, getTemplate} = require("./config");
62+
const {loadConfig, getTemplate} = require("./config");
6363
const config = loadConfig(argv.config);
6464
const tutorials = loadTutorials(argv.tutorials);
6565

0 commit comments

Comments
 (0)