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.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: 'no-disallowed-headers',
schema: [{
additionalProperties: false,
definitions: {
'string-array': {
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.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: 'no-protocol-relative-urls',
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.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: 'x-content-type-options',
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.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: 'validate-set-cookie-header',
ignoredConnectors: [],
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 { Algorithms, OriginCriteria } from './types';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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: 'sri',
schema: [{
additionalProperties: false,
properties: {
baseline: {
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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: 'strict-transport-security',
schema: [{
properties: {
checkPreload: { type: 'boolean' },
minMaxAgeValue: { type: 'number' }
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.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: 'no-vulnerable-javascript-libraries',
schema: [{
additionalProperties: false,
properties: {
severity: {
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.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: 'disown-opener',
schema: [{
additionalProperties: false,
properties: { includeSameOriginURLs: { type: 'boolean' } },
type: ['object', 'null']
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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
};
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
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: 'ssllabs',
schema: [{
additionalProperties: false,
properties: {
grade: {