Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;
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;
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;
},
/* 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;
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;
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;
details: { type: 'boolean' },
ignore: {
anyOf: [
{
items: { type: 'string' },
type: 'array'
}, { type: 'string' }
]
},
validator: {
pattern: '^(http|https)://',
type: 'string'
}
}
}],
scope: HintScope.any
};
export default meta;
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;
}
}];