How to use the hint.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-no-p3p / src / meta.ts View on Github external
docs: {
        category: Category.compatibility,
        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: 'no-p3p',
    schema: [],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-no-friendly-error-pages / src / meta.ts View on Github external
docs: {
        category: Category.compatibility,
        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: 'no-friendly-error-pages',
    schema: [],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-strict-transport-security / 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: 'strict-transport-security',
    schema: [{
        properties: {
            checkPreload: { type: 'boolean' },
            minMaxAgeValue: { type: 'number' }
        }
    }],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-no-broken-links / src / meta.ts View on Github external
},
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('name', language);
    },
    id: 'no-broken-links',
    schema: [{
        properties: {
            method: {
                pattern: '^([hH][eE][aA][dD])|([gG][eE][tT])$',
                type: 'string'
            }
        },
        type: 'object'
    }],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-https-only / 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: 'https-only',
    schema: [],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-http-compression / src / meta.ts View on Github external
additionalProperties: false,
                minProperties: 1,
                properties: {
                    brotli: { type: 'boolean' },
                    gzip: { type: 'boolean' },
                    zopfli: { type: 'boolean' }
                }
            }
        },
        properties: {
            html: { $ref: '#/definitions/options' },
            resource: { $ref: '#/definitions/options' }
        },
        type: 'object'
    }],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-performance-budget / src / meta.ts View on Github external
id: 'performance-budget',
    schema: [{
        additionalProperties: false,
        properties: {
            connectionType: {
                enum: Connections.ids,
                type: 'string'
            },
            loadTime: {
                minimum: 1,
                type: 'number'
            }
        },
        type: 'object'
    }],
    scope: HintScope.site
};

export default meta;
github webhintio / hint / packages / hint-ssllabs / src / meta.ts View on Github external
},
                    fromCache: { type: 'boolean' },
                    ignoreMismatch: { type: 'boolean' },
                    maxAge: {
                        minimum: 0,
                        type: 'integer'
                    },
                    publish: { type: 'boolean' },
                    startNew: { type: 'boolean' }
                },
                type: 'object'
            }
        },
        type: 'object'
    }],
    scope: HintScope.site
};

export default meta;