How to use the @hint/utils-network.isLocalFile 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-highest-available-document-mode / src / hint.ts View on Github external
const validate = ({ resource }: TraverseEnd) => {
            // The following check doesn't make sense for local files.

            if (!isLocalFile(resource) && context.pageHeaders) {
                checkHeader(resource, context.pageHeaders);
            }

            checkMetaElement(resource);
        };