From 3fc8706007d896dcbde69c0ce924a6a5eb66aba6 Mon Sep 17 00:00:00 2001
From: MCMXC <16797721+mcmxcdev@users.noreply.github.com>
Date: Mon, 4 Dec 2023 08:52:48 -0700
Subject: refactor: implement biome (#1467)

- add `biome.json`
- add `biome:check` and `biome:check:fix` commands to `package.json`
- add `biome:check:fix` command to run as part of `prepare-code` command
- install `@biomejs/biome` dependency
- add `@npmcli/move-file` v2.0.1 to `pnpm.allowedDeprecatedVersions`
- fix or comment out various reported lint issues
---
 src/components/settings/services/ServiceItem.tsx | 30 ++++--------------------
 1 file changed, 5 insertions(+), 25 deletions(-)

(limited to 'src/components/settings/services/ServiceItem.tsx')

diff --git a/src/components/settings/services/ServiceItem.tsx b/src/components/settings/services/ServiceItem.tsx
index babe06b5a..35b63b160 100644
--- a/src/components/settings/services/ServiceItem.tsx
+++ b/src/components/settings/services/ServiceItem.tsx
@@ -44,11 +44,7 @@ class ServiceItem extends Component<IProps> {
           'service-table__row--disabled': !service.isEnabled,
         })}
       >
-        <td
-          className="service-table__column-icon"
-          onClick={goToServiceForm}
-          role="gridcell"
-        >
+        <td className="service-table__column-icon" onClick={goToServiceForm}>
           <img
             src={service.icon}
             className={classnames({
@@ -58,18 +54,10 @@ class ServiceItem extends Component<IProps> {
             alt=""
           />
         </td>
-        <td
-          className="service-table__column-name"
-          onClick={goToServiceForm}
-          role="gridcell"
-        >
+        <td className="service-table__column-name" onClick={goToServiceForm}>
           {service.name === '' ? service.recipe.name : service.name}
         </td>
-        <td
-          className="service-table__column-info"
-          onClick={goToServiceForm}
-          role="gridcell"
-        >
+        <td className="service-table__column-info" onClick={goToServiceForm}>
           {service.isMuted && (
             <Icon
               icon={mdiBellOff}
@@ -78,11 +66,7 @@ class ServiceItem extends Component<IProps> {
             />
           )}
         </td>
-        <td
-          className="service-table__column-info"
-          onClick={goToServiceForm}
-          role="gridcell"
-        >
+        <td className="service-table__column-info" onClick={goToServiceForm}>
           {!service.isEnabled && (
             <Icon
               icon={mdiPower}
@@ -93,11 +77,7 @@ class ServiceItem extends Component<IProps> {
             />
           )}
         </td>
-        <td
-          className="service-table__column-info"
-          onClick={goToServiceForm}
-          role="gridcell"
-        >
+        <td className="service-table__column-info" onClick={goToServiceForm}>
           {!service.isNotificationEnabled && (
             <Icon
               icon={mdiMessageBulletedOff}
-- 
cgit v1.2.3-70-g09d2

