Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Category } from '@hint/utils-types';
import { HintScope } from 'hint/dist/src/lib/enums/hint-scope';
import { HintMetadata } from 'hint/dist/src/lib/types';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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: 'content-type',
schema: [{
items: { type: 'string' },
type: ['object', 'null'],
uniqueItems: trueimport { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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
};import { Category } from '@hint/utils-types';
import { HintScope } from 'hint/dist/src/lib/enums/hint-scope';
import { HintMetadata } from 'hint/dist/src/lib/types';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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: 'summary-display',
schema: [],
scope: HintScope.any
};import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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
};import { Category } from '@hint/utils-types';
import { HintScope } from 'hint/dist/src/lib/enums/hint-scope';
import { HintMetadata } from 'hint/dist/src/lib/types';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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: 'meta-viewport',
schema: [],
scope: HintScope.any
};import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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
};import { Category } from '@hint/utils-types';
import { HintScope } from 'hint/dist/src/lib/enums/hint-scope';
import { HintMetadata } from 'hint/dist/src/lib/types';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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: 'meta-charset-utf-8',
schema: [],
scope: HintScope.any
};import { Category } from '@hint/utils-types';
import { HintScope } from 'hint/dist/src/lib/enums/hint-scope';
import { HintMetadata } from 'hint/dist/src/lib/types';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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: 'stylesheet-limits',
schema: [{
additionalProperties: false,
definitions: {
number: {import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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: 'html-checker',
schema: [{
properties: {
details: { type: 'boolean' },
ignore: {validate: notEmpty
},
{
default(answers: inquirer.Answers) {
return `Description for ${answers.name}`;
},
message(answers: inquirer.Answers) {
return `What's the description of this new ${answers.multi ? 'package' : 'hint'} '${answers.name}'?`;
},
name: 'description',
type: 'input',
validate: notEmpty
},
{
choices: categories,
default: Category.compatibility,
message: 'Please select the category of this new hint:',
name: 'category',
type: 'list',
when(answers: inquirer.Answers) {
return !answers.multi;
}
},
{
choices: useCases,
default: 'dom',
message: 'Please select the category of use case:',
name: 'useCase',
type: 'list',
when(answers: inquirer.Answers) {
return !answers.multi;
}