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/quickSwitch/Component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/features/quickSwitch') diff --git a/src/features/quickSwitch/Component.js b/src/features/quickSwitch/Component.js index 04822db71..812f2c04b 100644 --- a/src/features/quickSwitch/Component.js +++ b/src/features/quickSwitch/Component.js @@ -28,7 +28,7 @@ const messages = defineMessages({ }, }); -const styles = theme => ({ +const styles = (theme) => ({ modal: { width: '80%', maxWidth: 600, @@ -139,7 +139,7 @@ export default @injectSheet(styles) @inject('stores', 'actions') @observer class if (this.state.search && compact(invoke(this.state.search, 'match', /^[a-z0-9]/i)).length > 0) { // Apply simple search algorythm to list of all services services = this.props.stores.services.allDisplayed; - services = services.filter(service => service.name.toLowerCase().search(this.state.search.toLowerCase()) !== -1); + services = services.filter((service) => service.name.toLowerCase().search(this.state.search.toLowerCase()) !== -1); } else { // Add the currently active service first const currentService = this.props.stores.services.active; -- cgit v1.2.3-70-g09d2