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.performance,
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-http-redirects',
schema: [{
additionalProperties: false,
properties: {
'max-html-redirects': {
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
docs: {
category: Category.performance,
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: 'http-compression',
schema: [{
additionalProperties: false,
definitions: {
options: {
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.performance,
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: 'minified-js',
schema: [{
additionalProperties: false,
properties: { threshold: { type: 'number' } }
}],
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
docs: {
category: Category.performance,
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: 'image-optimization-cloudinary',
schema: [{
additionalProperties: false,
properties: {
apiKey: { type: 'string' },
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.performance,
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-html-only-headers',
schema: [{
additionalProperties: false,
definitions: {
'string-array': {
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
docs: {
category: Category.performance,
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-broken-links',
schema: [{
properties: {
method: {
pattern: '^([hH][eE][aA][dD])|([gG][eE][tT])$',
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.performance,
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: 'amp-validator',
schema: [{
additionalProperties: false,
properties: { 'errors-only': { type: 'boolean' } },
type: 'object'
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';
import * as Connections from './connections';
import { getMessage } from './i18n.import';
const meta: HintMetadata = {
docs: {
category: Category.performance,
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: 'performance-budget',
schema: [{
additionalProperties: false,
properties: {
connectionType: {
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.performance,
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: 'http-cache',
schema: [{
additionalProperties: false,
definitions: {
'string-array': {