How to use the hint.HintScope.any 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-apple-touch-icons / 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: 'apple-touch-icons',
    schema: [],
    scope: HintScope.any
};

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

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

export default meta;
github webhintio / hint / packages / hint-image-optimization-cloudinary / src / meta.ts View on Github external
},
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('name', language);
    },
    id: 'image-optimization-cloudinary',
    schema: [{
        additionalProperties: false,
        properties: {
            apiKey: { type: 'string' },
            apiSecret: { type: 'string' },
            cloudName: { type: 'string' },
            threshold: { type: 'number' }
        }
    }],
    scope: HintScope.any
};

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

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

export default meta;
github webhintio / hint / packages / hint-html-checker / src / meta.ts View on Github external
details: { type: 'boolean' },
            ignore: {
                anyOf: [
                    {
                        items: { type: 'string' },
                        type: 'array'
                    }, { type: 'string' }
                ]
            },
            validator: {
                pattern: '^(http|https)://',
                type: 'string'
            }
        }
    }],
    scope: HintScope.any
};

export default meta;
github webhintio / hint / packages / create-hint / src / create-hint.ts View on Github external
return !answers.multi;
        }
    },
    {
        default: 'div',
        message: 'What DOM element does the hint need access to?',
        name: 'elementType',
        type: 'input',
        validate: notEmpty,
        when: (answers: inquirer.Answers) => {
            return answers.useCase === 'dom';
        }
    },
    {
        choices: scopes,
        default: HintScope.any,
        message: 'Please select the scope of this new hint:',
        name: 'scope',
        type: 'list',
        when(answers: inquirer.Answers) {
            return !answers.multi;
        }
    },
    {
        default: true,
        message: 'Want to add more hints (yes)?',
        name: 'again',
        type: 'confirm',
        when: () => {
            return type === QuestionsType.hint;
        }
    }];