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/components/services/tabs/Tabbar.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/components/services/tabs') diff --git a/src/components/services/tabs/Tabbar.js b/src/components/services/tabs/Tabbar.js index db7a69bfc..0f608c415 100644 --- a/src/components/services/tabs/Tabbar.js +++ b/src/components/services/tabs/Tabbar.js @@ -33,7 +33,7 @@ export default @observer class TabBar extends Component { reorder({ oldIndex, newIndex }); }; - shouldPreventSorting = event => event.target.tagName !== 'LI'; + shouldPreventSorting = (event) => event.target.tagName !== 'LI'; toggleService = ({ serviceId, isEnabled }) => { const { updateService } = this.props; @@ -95,10 +95,10 @@ export default @observer class TabBar extends Component { toggleNotifications={toggleNotifications} toggleAudio={toggleAudio} deleteService={deleteService} - disableService={args => this.disableService(args)} - enableService={args => this.enableService(args)} - hibernateService={args => this.hibernateService(args)} - wakeUpService={args => this.wakeUpService(args)} + disableService={(args) => this.disableService(args)} + enableService={(args) => this.enableService(args)} + hibernateService={(args) => this.hibernateService(args)} + wakeUpService={(args) => this.wakeUpService(args)} openSettings={openSettings} distance={20} axis="y" -- cgit v1.2.3-70-g09d2