From 9f636cc41146076a3e6658eaafeb397a060ce784 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 5 May 2017 12:45:03 +0300 Subject: [PATCH] chore: fix lint issues --- lib/components/index.ts | 2 +- lib/services/menu.service.ts | 2 +- lib/services/schema-normalizer.service.spec.ts | 2 +- lib/utils/md-renderer.ts | 2 +- lib/utils/swagger-typings.ts | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/components/index.ts b/lib/components/index.ts index 5ba6d44c1c..719d20d6ff 100644 --- a/lib/components/index.ts +++ b/lib/components/index.ts @@ -29,4 +29,4 @@ export const REDOC_DIRECTIVES = [ export { ApiInfo, ApiLogo, JsonSchema, JsonSchemaLazy, ParamsList, RequestSamples, ResponsesList, ResponsesSamples, SchemaSample, SideMenu, OperationsList, Operation, Warnings, Redoc, SecurityDefinitions, -LoadingBar, SideMenuItems, ExternalDocs, EndpointLink } +LoadingBar, SideMenuItems, ExternalDocs, EndpointLink }; diff --git a/lib/services/menu.service.ts b/lib/services/menu.service.ts index 684b69173b..7ff779558e 100644 --- a/lib/services/menu.service.ts +++ b/lib/services/menu.service.ts @@ -264,7 +264,7 @@ export class MenuService { if (namespace === 'section') { searchId = hash; } else { - searchId = ptr || (namespace + '/' + sectionId);; + searchId = ptr || (namespace + '/' + sectionId); } idx = this.flatItems.findIndex(item => item.id === searchId); diff --git a/lib/services/schema-normalizer.service.spec.ts b/lib/services/schema-normalizer.service.spec.ts index c1d801bb3d..57c64a0ed3 100644 --- a/lib/services/schema-normalizer.service.spec.ts +++ b/lib/services/schema-normalizer.service.spec.ts @@ -1,6 +1,6 @@ 'use strict'; import { SchemaNormalizer } from './schema-normalizer.service'; -import { SpecManager } from '../utils/spec-manager';; +import { SpecManager } from '../utils/spec-manager'; import { OptionsService } from '../services/options.service'; diff --git a/lib/utils/md-renderer.ts b/lib/utils/md-renderer.ts index bdb5890f82..9e2c890cae 100644 --- a/lib/utils/md-renderer.ts +++ b/lib/utils/md-renderer.ts @@ -111,7 +111,7 @@ export class MdRenderer { } else { let content = tokens[idx + 1].content; if (tokens[idx].hLevel === 1 ) { - this.currentTopHeading = this.saveHeading(content);; + this.currentTopHeading = this.saveHeading(content); let id = this.currentTopHeading.id; return `` + `` + diff --git a/lib/utils/swagger-typings.ts b/lib/utils/swagger-typings.ts index 91e74c5e27..6bbd918822 100644 --- a/lib/utils/swagger-typings.ts +++ b/lib/utils/swagger-typings.ts @@ -15,11 +15,11 @@ export interface RedocInjectedPointer { } -export interface SwaggerOperation extends Operation, RedocInjectedPointer {}; +export interface SwaggerOperation extends Operation, RedocInjectedPointer {} export interface SwaggerBodyParameter extends BodyParameter, RedocInjectedPointer {} export interface SwaggerHeaderParameter extends HeaderParameter, RedocInjectedPointer {} export interface SwaggerQueryParameter extends QueryParameter, RedocInjectedPointer {} export interface SwaggerFormDataParameter extends FormDataParameter, RedocInjectedPointer {} export type SwaggerParameter = SwaggerBodyParameter | SwaggerHeaderParameter | SwaggerQueryParameter | SwaggerFormDataParameter; -export interface SwaggerSchema extends Schema, RedocInjectedPointer {}; +export interface SwaggerSchema extends Schema, RedocInjectedPointer {} export { Spec as SwaggerSpec, Response as SwaggerResponse };