Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;
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;
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;
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;
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;
'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;
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;
'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;
'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;
'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;