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.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
};
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-friendly-error-pages',
schema: [],
scope: HintScope.site
};
export default meta;
/* istanbul ignore next */
getDescription(language: string) {
return getMessage('description', language);
},
/* istanbul ignore next */
getName(language: string) {
return getMessage('name', language);
},
id: 'strict-transport-security',
schema: [{
properties: {
checkPreload: { type: 'boolean' },
minMaxAgeValue: { type: 'number' }
}
}],
scope: HintScope.site
};
export default meta;
},
/* istanbul ignore next */
getName(language: string) {
return getMessage('name', language);
},
id: 'no-broken-links',
schema: [{
properties: {
method: {
pattern: '^([hH][eE][aA][dD])|([gG][eE][tT])$',
type: 'string'
}
},
type: 'object'
}],
scope: HintScope.site
};
export default meta;
docs: {
category: Category.security,
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: 'https-only',
schema: [],
scope: HintScope.site
};
export default meta;
additionalProperties: false,
minProperties: 1,
properties: {
brotli: { type: 'boolean' },
gzip: { type: 'boolean' },
zopfli: { type: 'boolean' }
}
}
},
properties: {
html: { $ref: '#/definitions/options' },
resource: { $ref: '#/definitions/options' }
},
type: 'object'
}],
scope: HintScope.site
};
export default meta;
id: 'performance-budget',
schema: [{
additionalProperties: false,
properties: {
connectionType: {
enum: Connections.ids,
type: 'string'
},
loadTime: {
minimum: 1,
type: 'number'
}
},
type: 'object'
}],
scope: HintScope.site
};
export default meta;
},
fromCache: { type: 'boolean' },
ignoreMismatch: { type: 'boolean' },
maxAge: {
minimum: 0,
type: 'integer'
},
publish: { type: 'boolean' },
startNew: { type: 'boolean' }
},
type: 'object'
}
},
type: 'object'
}],
scope: HintScope.site
};
export default meta;