From f4b4416ea52d564bc2dbe543a82084ed98843ccc Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Fri, 30 Jul 2021 10:54:54 +0200 Subject: chore: migrate from tslint to @typescript-eslint (#1706) - update .eslintrc to work for .js and .ts - update devDependencies - lint properly both root /src and nested /packages - update webhint recommended setting for tsconfig.json to shrink output - Manage all eslint rules from the repo root - escape single quotes in scripts to please windows build Co-authored-by: Vijay A --- packages/ui/src/loader/index.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'packages/ui/src/loader') diff --git a/packages/ui/src/loader/index.tsx b/packages/ui/src/loader/index.tsx index e2701a8e9..244aa9dc9 100644 --- a/packages/ui/src/loader/index.tsx +++ b/packages/ui/src/loader/index.tsx @@ -3,7 +3,6 @@ import React, { Component } from 'react'; import injectStyle, { withTheme } from 'react-jss'; import ReactLoader from 'react-loader'; -import { Theme } from '../../../theme'; import { IWithStyle } from '../typings/generic'; interface IProps extends IWithStyle { @@ -11,7 +10,7 @@ interface IProps extends IWithStyle { color?: string; } -const styles = (theme: Theme) => ({ +const styles = () => ({ container: { position: 'relative', height: 60, @@ -20,12 +19,7 @@ const styles = (theme: Theme) => ({ class LoaderComponent extends Component { render() { - const { - classes, - className, - color, - theme, - } = this.props; + const { classes, className, color, theme } = this.props; return (