How to use the @hint/utils-network.getAsUris function in @hint/utils-network

To help you get started, we’ve selected a few @hint/utils-network 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 webhintio / hint / packages / hint / src / lib / cli / analyze.ts View on Github external
export default async (actions: CLIOptions): Promise => {
    const targets = getAsUris(actions._);

    if (targets.length === 0) {
        return false;
    }

    const userConfig = await loadUserConfig(actions, targets);

    const createAnalyzerOptions = actionsToOptions(actions);
    let webhint: Analyzer;

    try {
        webhint = await getAnalyzer(userConfig, createAnalyzerOptions, targets);
    } catch (e) {
        return false;
    }