aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-08-31 22:04:03 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-08-31 23:18:43 +0800
commit327b4ba5546907f3c2b6fddd2a4d3d767d1f6767 (patch)
treef3f3ed2b893f9bc36c5ad1d6727bff4d4dae8989
parent50b725c687c3968b0a495924700296ce6ce5bbec (diff)
downloaddexon-sol-tools-327b4ba5546907f3c2b6fddd2a4d3d767d1f6767.tar.gz
dexon-sol-tools-327b4ba5546907f3c2b6fddd2a4d3d767d1f6767.tar.zst
dexon-sol-tools-327b4ba5546907f3c2b6fddd2a4d3d767d1f6767.zip
satisfy linter
-rw-r--r--packages/react-docs/src/utils/typedoc_utils.ts1
-rw-r--r--packages/sol-doc/src/solidity_doc_generator.ts4
-rw-r--r--packages/sol-doc/test/solidity_doc_generator_test.ts2
-rw-r--r--packages/sol-doc/tsconfig.json3
-rw-r--r--packages/website/ts/components/ui/typed_text.tsx1
-rw-r--r--packages/website/ts/pages/landing/landing.tsx5
6 files changed, 4 insertions, 12 deletions
diff --git a/packages/react-docs/src/utils/typedoc_utils.ts b/packages/react-docs/src/utils/typedoc_utils.ts
index a24e63045..d235b4406 100644
--- a/packages/react-docs/src/utils/typedoc_utils.ts
+++ b/packages/react-docs/src/utils/typedoc_utils.ts
@@ -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 };
});
}
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts
index 457c86c91..debee5b87 100644
--- a/packages/sol-doc/src/solidity_doc_generator.ts
+++ b/packages/sol-doc/src/solidity_doc_generator.ts
@@ -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,
diff --git a/packages/sol-doc/test/solidity_doc_generator_test.ts b/packages/sol-doc/test/solidity_doc_generator_test.ts
index df6ad8e54..989f29320 100644
--- a/packages/sol-doc/test/solidity_doc_generator_test.ts
+++ b/packages/sol-doc/test/solidity_doc_generator_test.ts
@@ -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';
diff --git a/packages/sol-doc/tsconfig.json b/packages/sol-doc/tsconfig.json
index e35816553..2ee711adc 100644
--- a/packages/sol-doc/tsconfig.json
+++ b/packages/sol-doc/tsconfig.json
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
- "outDir": "lib"
+ "outDir": "lib",
+ "rootDir": "."
},
"include": ["./src/**/*", "./test/**/*"]
}
diff --git a/packages/website/ts/components/ui/typed_text.tsx b/packages/website/ts/components/ui/typed_text.tsx
index 2bb2d40b0..6d38580b9 100644
--- a/packages/website/ts/components/ui/typed_text.tsx
+++ b/packages/website/ts/components/ui/typed_text.tsx
@@ -1,5 +1,4 @@
import * as _ from 'lodash';
-import { darken } from 'polished';
import * as React from 'react';
import Typist from 'react-typist';
diff --git a/packages/website/ts/pages/landing/landing.tsx b/packages/website/ts/pages/landing/landing.tsx
index 7dfd9c9df..211be7bf2 100644
--- a/packages/website/ts/pages/landing/landing.tsx
+++ b/packages/website/ts/pages/landing/landing.tsx
@@ -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;