How to use the hint/dist/src/lib/enums/hint-scope.HintScope.site function in hint

To help you get started, we’ve selected a few hint 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-manifest-scoped-urls / src / meta.ts View on Github external
docs: {
        category: Category.pwa,
        description: getMessage('description', 'en'),
        name: getMessage('name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('name', language);
    },
    id: 'manifest-scoped-urls',
    schema: [],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-content-type / src / meta.ts View on Github external
},
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('name', language);
    },
    id: 'content-type',
    schema: [{
        items: { type: 'string' },
        type: ['object', 'null'],
        uniqueItems: true
    }],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-x-content-type-options / src / meta.ts View on Github external
docs: {
        category: Category.security,
        description: getMessage('description', 'en'),
        name: getMessage('name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('name', language);
    },
    id: 'x-content-type-options',
    schema: [],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-validate-set-cookie-header / src / meta.ts View on Github external
category: Category.security,
        description: getMessage('description', 'en'),
        name: getMessage('name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('name', language);
    },
    id: 'validate-set-cookie-header',
    ignoredConnectors: [],
    schema: [],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-http-cache / src / meta.ts View on Github external
additionalProperties: false,
        definitions: {
            'string-array': {
                items: { type: 'string' },
                minItems: 1,
                type: 'array',
                uniqueItems: true
            }
        },
        properties: {
            maxAgeResource: { type: 'number' },
            maxAgeTarget: { type: 'number' },
            revvingPatterns: { $ref: '#/definitions/string-array' }
        }
    }],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-stylesheet-limits / src / meta.ts View on Github external
schema: [{
        additionalProperties: false,
        definitions: {
            number: {
                minimum: 0,
                type: 'integer'
            }
        },
        properties: {
            maxImports: { $ref: '#/definitions/number' },
            maxRules: { $ref: '#/definitions/number' },
            maxSheets: { $ref: '#/definitions/number' }
        },
        type: ['object', 'null']
    }],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-no-http-redirects / src / meta.ts View on Github external
id: 'no-http-redirects',
    schema: [{
        additionalProperties: false,
        properties: {
            'max-html-redirects': {
                minimum: 0,
                type: 'integer'
            },
            'max-resource-redirects': {
                minimum: 0,
                type: 'integer'
            }
        },
        type: 'object'
    }],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-no-vulnerable-javascript-libraries / src / meta.ts View on Github external
id: 'no-vulnerable-javascript-libraries',
    schema: [{
        additionalProperties: false,
        properties: {
            severity: {
                pattern: '^(low|medium|high)$',
                type: 'string'
            }
        },
        type: 'object'
    }],
    /*
     * Snyk can not analyze a file itself, it needs a connector.
     * TODO: Change to any once the local connector has jsdom.
     */
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-no-html-only-headers / src / meta.ts View on Github external
additionalProperties: false,
        definitions: {
            'string-array': {
                items: { type: 'string' },
                minItems: 1,
                type: 'array',
                uniqueItems: true
            }
        },
        properties: {
            ignore: { $ref: '#/definitions/string-array' },
            include: { $ref: '#/definitions/string-array' }
        },
        type: ['object', 'null']
    }],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-no-disallowed-headers / src / meta.ts View on Github external
additionalProperties: false,
        definitions: {
            'string-array': {
                items: { type: 'string' },
                minItems: 1,
                type: 'array',
                uniqueItems: true
            }
        },
        properties: {
            ignore: { $ref: '#/definitions/string-array' },
            include: { $ref: '#/definitions/string-array' }
        },
        type: ['object', 'null']
    }],
    scope: HintScope.site
};

export default meta;