How to use the hint/dist/src/lib/enums/category.Category.compatibility 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-compat-api / src / meta / html-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 HTML features used are supported in target browsers',
        name: 'New HTML features'
    },
    id: 'compat-api/html-next',
    schema: [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;