chore: fix lint issues

This commit is contained in:
Roman Hotsiy 2017-05-05 12:45:03 +03:00
parent 60169f2193
commit 9f636cc411
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
5 changed files with 6 additions and 6 deletions

View File

@ -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 };

View File

@ -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);

View File

@ -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';

View File

@ -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 `<h${tokens[idx].hLevel} section="section/${id}">` +
`<a class="share-link" href="#section/${id}"></a>` +

View File

@ -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 };