Fix linter errors

This commit is contained in:
fabioberger
2019-07-25 12:21:53 +02:00
parent 24a26aef70
commit fbda096aa9
22 changed files with 22 additions and 22 deletions

View File

@@ -3,9 +3,9 @@ import * as React from 'react';
import MediaQuery from 'react-responsive'; import MediaQuery from 'react-responsive';
import styled from 'styled-components'; import styled from 'styled-components';
import { Link as SmartLink } from 'ts/components/documentation/shared/link';
import { Logo } from 'ts/components/logo'; import { Logo } from 'ts/components/logo';
import { Column, FlexWrap, WrapGrid } from 'ts/components/newLayout'; import { Column, FlexWrap, WrapGrid } from 'ts/components/newLayout';
import { Link as SmartLink } from 'ts/components/documentation/shared/link';
import { NewsletterForm } from 'ts/components/newsletter_form'; import { NewsletterForm } from 'ts/components/newsletter_form';
import { WebsitePaths } from 'ts/types'; import { WebsitePaths } from 'ts/types';
import { constants } from 'ts/utils/constants'; import { constants } from 'ts/utils/constants';

View File

@@ -1,8 +1,8 @@
import { Link } from 'ts/components/documentation/shared/link';
import _ from 'lodash'; import _ from 'lodash';
import * as React from 'react'; import * as React from 'react';
import MediaQuery from 'react-responsive'; import MediaQuery from 'react-responsive';
import styled, { css, withTheme } from 'styled-components'; import styled, { css, withTheme } from 'styled-components';
import { Link } from 'ts/components/documentation/shared/link';
import Headroom from 'react-headroom'; import Headroom from 'react-headroom';

View File

@@ -1,4 +1,3 @@
import { colors } from 'ts/utils/colors';
import Paper from 'material-ui/Paper'; import Paper from 'material-ui/Paper';
import * as React from 'react'; import * as React from 'react';
import { Blockchain } from 'ts/blockchain'; import { Blockchain } from 'ts/blockchain';
@@ -7,6 +6,7 @@ import { InputLabel } from 'ts/components/ui/input_label';
import { TokenIcon } from 'ts/components/ui/token_icon'; import { TokenIcon } from 'ts/components/ui/token_icon';
import { Dispatcher } from 'ts/redux/dispatcher'; import { Dispatcher } from 'ts/redux/dispatcher';
import { AssetToken, BlockchainErrs, Side, Token, TokenByAddress } from 'ts/types'; import { AssetToken, BlockchainErrs, Side, Token, TokenByAddress } from 'ts/types';
import { colors } from 'ts/utils/colors';
const TOKEN_ICON_DIMENSION = 80; const TOKEN_ICON_DIMENSION = 80;

View File

@@ -1,8 +1,8 @@
import { colors } from 'ts/utils/colors';
import * as React from 'react'; import * as React from 'react';
import { Container } from 'ts/components/ui/container'; import { Container } from 'ts/components/ui/container';
import { Image } from 'ts/components/ui/image'; import { Image } from 'ts/components/ui/image';
import { Text } from 'ts/components/ui/text'; import { Text } from 'ts/components/ui/text';
import { colors } from 'ts/utils/colors';
import { utils } from 'ts/utils/utils'; import { utils } from 'ts/utils/utils';
export interface InstallWalletOnboardingStepProps {} export interface InstallWalletOnboardingStepProps {}

View File

@@ -1,5 +1,5 @@
import { Link } from 'ts/components/documentation/shared/link';
import * as React from 'react'; import * as React from 'react';
import { Link } from 'ts/components/documentation/shared/link';
import { Island } from 'ts/components/ui/island'; import { Island } from 'ts/components/ui/island';
import { colors } from 'ts/style/colors'; import { colors } from 'ts/style/colors';
import { Styles } from 'ts/types'; import { Styles } from 'ts/types';

View File

@@ -1,8 +1,8 @@
import { Link } from 'ts/components/documentation/shared/link';
import { BigNumber } from '@0x/utils'; import { BigNumber } from '@0x/utils';
import * as _ from 'lodash'; import * as _ from 'lodash';
import * as React from 'react'; import * as React from 'react';
import { Redirect, Route, RouteComponentProps, Switch } from 'react-router-dom'; import { Redirect, Route, RouteComponentProps, Switch } from 'react-router-dom';
import { Link } from 'ts/components/documentation/shared/link';
import { colors } from 'ts/style/colors'; import { colors } from 'ts/style/colors';
import { Blockchain } from 'ts/blockchain'; import { Blockchain } from 'ts/blockchain';

View File

@@ -1,5 +1,5 @@
import { colors } from 'ts/utils/colors';
import * as React from 'react'; import * as React from 'react';
import { colors } from 'ts/utils/colors';
import { Text } from 'ts/components/ui/text'; import { Text } from 'ts/components/ui/text';

View File

@@ -1,6 +1,6 @@
import { Link } from 'ts/components/documentation/shared/link';
import * as _ from 'lodash'; import * as _ from 'lodash';
import * as React from 'react'; import * as React from 'react';
import { Link } from 'ts/components/documentation/shared/link';
import { colors } from 'ts/style/colors'; import { colors } from 'ts/style/colors';
import { CallToAction } from 'ts/components/ui/button'; import { CallToAction } from 'ts/components/ui/button';

View File

@@ -1,8 +1,8 @@
import { colors } from 'ts/utils/colors';
import * as _ from 'lodash'; import * as _ from 'lodash';
import * as React from 'react'; import * as React from 'react';
import { Party } from 'ts/components/ui/party'; import { Party } from 'ts/components/ui/party';
import { Token, TokenByAddress } from 'ts/types'; import { Token, TokenByAddress } from 'ts/types';
import { colors } from 'ts/utils/colors';
import { utils } from 'ts/utils/utils'; import { utils } from 'ts/utils/utils';
interface TrackTokenConfirmationProps { interface TrackTokenConfirmationProps {

View File

@@ -1,8 +1,8 @@
import { colors } from 'ts/utils/colors';
import * as React from 'react'; import * as React from 'react';
import * as CopyToClipboard from 'react-copy-to-clipboard'; import * as CopyToClipboard from 'react-copy-to-clipboard';
import * as ReactDOM from 'react-dom'; import * as ReactDOM from 'react-dom';
import ReactTooltip from 'react-tooltip'; import ReactTooltip from 'react-tooltip';
import { colors } from 'ts/utils/colors';
interface CopyIconProps { interface CopyIconProps {
data: string; data: string;

View File

@@ -1,6 +1,6 @@
import { Link } from 'ts/components/documentation/shared/link';
import * as _ from 'lodash'; import * as _ from 'lodash';
import * as React from 'react'; import * as React from 'react';
import { Link } from 'ts/components/documentation/shared/link';
interface CustomMenuItemProps { interface CustomMenuItemProps {
to: string; to: string;

View File

@@ -1,7 +1,7 @@
import { colors } from 'ts/utils/colors';
import { errorUtils } from '@0x/utils'; import { errorUtils } from '@0x/utils';
import RaisedButton from 'material-ui/RaisedButton'; import RaisedButton from 'material-ui/RaisedButton';
import * as React from 'react'; import * as React from 'react';
import { colors } from 'ts/utils/colors';
const COMPLETE_STATE_SHOW_LENGTH_MS = 2000; const COMPLETE_STATE_SHOW_LENGTH_MS = 2000;

View File

@@ -1,6 +1,6 @@
import { colors } from 'ts/utils/colors';
import * as _ from 'lodash'; import * as _ from 'lodash';
import * as React from 'react'; import * as React from 'react';
import { colors } from 'ts/utils/colors';
import { Container } from './container'; import { Container } from './container';

View File

@@ -1,6 +1,6 @@
import { colors } from 'ts/utils/colors';
import * as React from 'react'; import * as React from 'react';
import { styled } from 'ts/style/theme'; import { styled } from 'ts/style/theme';
import { colors } from 'ts/utils/colors';
export enum PointerDirection { export enum PointerDirection {
Top = 'top', Top = 'top',

View File

@@ -1,5 +1,5 @@
import { colors } from 'ts/utils/colors';
import * as React from 'react'; import * as React from 'react';
import { colors } from 'ts/utils/colors';
export interface RequiredLabelProps { export interface RequiredLabelProps {
label: string | React.ReactNode; label: string | React.ReactNode;

View File

@@ -1,7 +1,7 @@
import { Link } from 'ts/components/documentation/shared/link';
import * as _ from 'lodash'; import * as _ from 'lodash';
import * as React from 'react'; import * as React from 'react';
import * as CopyToClipboard from 'react-copy-to-clipboard'; import * as CopyToClipboard from 'react-copy-to-clipboard';
import { Link } from 'ts/components/documentation/shared/link';
import { Container } from 'ts/components/ui/container'; import { Container } from 'ts/components/ui/container';
import { Text } from 'ts/components/ui/text'; import { Text } from 'ts/components/ui/text';

View File

@@ -1,6 +1,6 @@
import { colors } from 'ts/utils/colors';
import * as React from 'react'; import * as React from 'react';
import { styled } from 'ts/style/theme'; import { styled } from 'ts/style/theme';
import { colors } from 'ts/utils/colors';
import { dash, rotate } from 'ts/style/keyframes'; import { dash, rotate } from 'ts/style/keyframes';

View File

@@ -1,5 +1,5 @@
import { colors } from 'ts/utils/colors';
import * as React from 'react'; import * as React from 'react';
import { colors } from 'ts/utils/colors';
interface SwapIconProps { interface SwapIconProps {
swapTokensFn: () => void; swapTokensFn: () => void;

View File

@@ -1,7 +1,7 @@
import { colors } from 'ts/utils/colors';
import { darken } from 'polished'; import { darken } from 'polished';
import * as React from 'react'; import * as React from 'react';
import { styled } from 'ts/style/theme'; import { styled } from 'ts/style/theme';
import { colors } from 'ts/utils/colors';
export type TextTag = 'p' | 'div' | 'span' | 'label' | 'h1' | 'h2' | 'h3' | 'h4' | 'i' | 'span'; export type TextTag = 'p' | 'div' | 'span' | 'label' | 'h1' | 'h2' | 'h3' | 'h4' | 'i' | 'span';

View File

@@ -1,6 +1,6 @@
import { colors } from 'ts/utils/colors';
import { Card, CardHeader, CardText } from 'material-ui/Card'; import { Card, CardHeader, CardText } from 'material-ui/Card';
import * as React from 'react'; import * as React from 'react';
import { colors } from 'ts/utils/colors';
export interface QuestionProps { export interface QuestionProps {
prompt: string; prompt: string;

View File

@@ -1,5 +1,5 @@
import { colors } from 'ts/utils/colors';
import { getMuiTheme } from 'material-ui/styles'; import { getMuiTheme } from 'material-ui/styles';
import { colors } from 'ts/utils/colors';
export const muiTheme = getMuiTheme({ export const muiTheme = getMuiTheme({
appBar: { appBar: {

View File

@@ -528,4 +528,4 @@ export const utils = {
const etherScanPrefix = networkName === Networks.Mainnet ? '' : `${networkName.toLowerCase()}.`; const etherScanPrefix = networkName === Networks.Mainnet ? '' : `${networkName.toLowerCase()}.`;
return `https://${etherScanPrefix}etherscan.io/${suffix}/${addressOrTxHash}`; return `https://${etherScanPrefix}etherscan.io/${suffix}/${addressOrTxHash}`;
}, },
}; }; // tslint:disable:max-file-line-count