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 --- src/features/webControls/components/WebControls.js | 4 ++-- src/features/webControls/containers/WebControlsScreen.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/features/webControls') diff --git a/src/features/webControls/components/WebControls.js b/src/features/webControls/components/WebControls.js index b9403bd0d..1cdd14e55 100644 --- a/src/features/webControls/components/WebControls.js +++ b/src/features/webControls/components/WebControls.js @@ -32,7 +32,7 @@ const messages = defineMessages({ }, }); -const styles = theme => ({ +const styles = (theme) => ({ root: { background: theme.colorBackground, position: 'relative', @@ -197,7 +197,7 @@ class WebControls extends Component { this.setState({ + onChange={(event) => this.setState({ inputUrl: event.target.value, })} onFocus={(event) => { diff --git a/src/features/webControls/containers/WebControlsScreen.js b/src/features/webControls/containers/WebControlsScreen.js index d638b831c..e1e1b9991 100644 --- a/src/features/webControls/containers/WebControlsScreen.js +++ b/src/features/webControls/containers/WebControlsScreen.js @@ -114,7 +114,7 @@ class WebControlsScreen extends Component { goBack={() => this.goBack()} canGoForward={this.canGoForward} goForward={() => this.goForward()} - navigate={url => this.navigate(url)} + navigate={(url) => this.navigate(url)} url={this.url} /> ); -- cgit v1.2.3-54-g00ecf