satisfy linter

This commit is contained in:
F. Eugene Aumson 2018-08-31 10:04:03 -04:00
parent 50b725c687
commit 327b4ba554
6 changed files with 4 additions and 12 deletions

View File

@ -468,6 +468,7 @@ export class TypeDocUtils {
methodIfExists = this._convertMethod(entity.declaration, isConstructor, sectionName);
} else if (entity.type === TypeDocTypes.Tuple) {
tupleElementsIfExists = _.map(entity.elements, el => {
// tslint:disable-next-line:no-unnecessary-type-assertion
return { name: el.name, typeDocType: el.type as TypeDocTypes };
});
}

View File

@ -1,7 +1,6 @@
import * as _ from 'lodash';
import {
AbiDefinition,
ConstructorAbi,
DataItem,
DevdocOutput,
@ -22,7 +21,6 @@ import {
Type,
TypeDocTypes,
} from '@0xproject/types';
import { logUtils } from '@0xproject/utils';
/**
* Invoke the Solidity compiler and transform its ABI and devdoc outputs into
@ -122,7 +120,7 @@ function _genConstructorDoc(abiDefinition: ConstructorAbi, devdocIfExists: Devdo
let comment;
// TODO: use methodSignature as the key to abiEntry.devdoc.methods, and
// from that object extract the "details" (comment) property
comment = 'something from devdoc';
comment = `something from devdoc, using ${methodSignature} to find it`;
const constructorDoc: SolidityMethod = {
isConstructor: true,

View File

@ -3,8 +3,6 @@ import * as _ from 'lodash';
import * as chai from 'chai';
import 'mocha';
import { DocSection } from '@0xproject/types';
import { generateSolDocAsync } from '../src/solidity_doc_generator';
import { chaiSetup } from './util/chai_setup';

View File

@ -1,7 +1,8 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"outDir": "lib"
"outDir": "lib",
"rootDir": "."
},
"include": ["./src/**/*", "./test/**/*"]
}

View File

@ -1,5 +1,4 @@
import * as _ from 'lodash';
import { darken } from 'polished';
import * as React from 'react';
import Typist from 'react-typist';

View File

@ -24,11 +24,6 @@ interface BoxContent {
classNames: string;
maxWidth: number;
}
interface AssetType {
title: string;
imageUrl: string;
style?: React.CSSProperties;
}
interface UseCase {
imageUrl: string;
type: string;