Add no-floating-promises ignore comments

This commit is contained in:
fragosti
2018-07-11 16:50:00 -07:00
parent 1ee78062d7
commit 0941e0a929
12 changed files with 24 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ export const RelayerGridTile: React.StatelessComponent<RelayerGridTileProps> = (
const topTokens = props.relayerInfo.topTokens;
const weeklyTxnVolume = props.relayerInfo.weeklyTxnVolume;
const onClick = () => {
// tslint:disable-next-line:no-floating-promises
analytics.trackAsync('Relayer Click', {
name: props.relayerInfo.name,
});

View File

@@ -1,8 +1,4 @@
import {
colors,
EtherscanLinkSuffixes,
utils as sharedUtils,
} from '@0xproject/react-shared';
import { colors, EtherscanLinkSuffixes, utils as sharedUtils } from '@0xproject/react-shared';
import * as _ from 'lodash';
import * as React from 'react';
@@ -47,6 +43,7 @@ class TokenLink extends React.Component<TokenLinkProps, TokenLinkState> {
public render(): React.ReactNode {
const onClick = (event: React.MouseEvent<HTMLElement>) => {
event.stopPropagation();
// tslint:disable-next-line:no-floating-promises
analytics.trackAsync('Token Click', {
tokenSymbol: this.props.tokenInfo.symbol,
});