How to use the hint/dist/src/lib/enums/hint-scope.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-manifest-is-valid / src / meta.ts View on Github external
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-is-valid',
    schema: [],
    scope: HintScope.any
};

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

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

export default meta;
github webhintio / hint / packages / hint-compat-api / src / meta / css-next.ts View on Github external
import { Category } from 'hint/dist/src/lib/enums/category';
import { HintScope } from 'hint/dist/src/lib/enums/hint-scope';
import { HintMetadata } from 'hint/dist/src/lib/types';

const schema = require('./compat-hint-schema.json');

const meta: HintMetadata = {
    docs: {
        category: Category.compatibility,
        description: 'Validate if CSS features used are supported by target browsers',
        name: 'New CSS features'
    },
    id: 'compat-api/css-next',
    schema: [schema],
    scope: HintScope.any
};

export default meta;
github webhintio / hint / packages / hint-axe / src / meta / other.ts View on Github external
properties: {
                'avoid-inline-spacing': { enum: ['off', 'warning', 'error'], type: 'string' },
                'label-content-name-mismatch': { enum: ['off', 'warning', 'error'], type: 'string' },
                'scrollable-region-focusable': { enum: ['off', 'warning', 'error'], type: 'string' }
            }
        },
        {
            items: {
                enum: ['avoid-inline-spacing', 'label-content-name-mismatch', 'scrollable-region-focusable'],
                type: 'string'
            },
            typeof: 'array',
            uniqueItems: true
        }
    ],
    scope: HintScope.any
};

export default meta;
github webhintio / hint / packages / hint-axe / src / meta / structure.ts View on Github external
'frame-tested': { enum: ['off', 'warning', 'error'], type: 'string' },
                'hidden-content': { enum: ['off', 'warning', 'error'], type: 'string' },
                list: { enum: ['off', 'warning', 'error'], type: 'string' },
                listitem: { enum: ['off', 'warning', 'error'], type: 'string' }
            }
        },
        {
            items: {
                enum: ['css-orientation-lock', 'definition-list', 'dlitem', 'frame-tested', 'hidden-content', 'list', 'listitem'],
                type: 'string'
            },
            typeof: 'array',
            uniqueItems: true
        }
    ],
    scope: HintScope.any
};

export default meta;
github webhintio / hint / packages / hint-axe / src / meta / color.ts View on Github external
additionalProperties: false,
            properties: {
                'color-contrast': { enum: ['off', 'warning', 'error'], type: 'string' },
                'link-in-text-block': { enum: ['off', 'warning', 'error'], type: 'string' }
            }
        },
        {
            items: {
                enum: ['color-contrast', 'link-in-text-block'],
                type: 'string'
            },
            typeof: 'array',
            uniqueItems: true
        }
    ],
    scope: HintScope.any
};

export default meta;
github webhintio / hint / packages / hint-axe / src / meta / forms.ts View on Github external
'form-field-multiple-labels': { enum: ['off', 'warning', 'error'], type: 'string' },
                label: { enum: ['off', 'warning', 'error'], type: 'string' },
                'label-title-only': { enum: ['off', 'warning', 'error'], type: 'string' },
                radiogroup: { enum: ['off', 'warning', 'error'], type: 'string' }
            }
        },
        {
            items: {
                enum: ['autocomplete-valid', 'checkboxgroup', 'form-field-multiple-labels', 'label', 'label-title-only', 'radiogroup'],
                type: 'string'
            },
            typeof: 'array',
            uniqueItems: true
        }
    ],
    scope: HintScope.any
};

export default meta;
github webhintio / hint / packages / hint-axe / src / meta / parsing.ts View on Github external
'duplicate-id': { enum: ['off', 'warning', 'error'], type: 'string' },
                'duplicate-id-active': { enum: ['off', 'warning', 'error'], type: 'string' },
                'duplicate-id-aria': { enum: ['off', 'warning', 'error'], type: 'string' },
                marquee: { enum: ['off', 'warning', 'error'], type: 'string' }
            }
        },
        {
            items: {
                enum: ['duplicate-id', 'duplicate-id-active', 'duplicate-id-aria', 'marquee'],
                type: 'string'
            },
            typeof: 'array',
            uniqueItems: true
        }
    ],
    scope: HintScope.any
};

export default meta;
github webhintio / hint / packages / hint-axe / src / meta / semantics.ts View on Github external
'landmark-unique': { enum: ['off', 'warning', 'error'], type: 'string' },
                'layout-table': { enum: ['off', 'warning', 'error'], type: 'string' },
                'p-as-heading': { enum: ['off', 'warning', 'error'], type: 'string' },
                'page-has-heading-one': { enum: ['off', 'warning', 'error'], type: 'string' }
            }
        },
        {
            items: {
                enum: ['heading-order', 'landmark-banner-is-top-level', 'landmark-complementary-is-top-level', 'landmark-contentinfo-is-top-level', 'landmark-main-is-top-level', 'landmark-no-duplicate-banner', 'landmark-no-duplicate-contentinfo', 'landmark-one-main', 'landmark-unique', 'layout-table', 'p-as-heading', 'page-has-heading-one'],
                type: 'string'
            },
            typeof: 'array',
            uniqueItems: true
        }
    ],
    scope: HintScope.any
};

export default meta;