From 04e806cbdc9e91d357b40e0b926d724fac9e5bb9 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Sun, 2 Feb 2025 21:37:39 +0000 Subject: [PATCH] fix linting --- src/Components/Map/Subcomponents/Controls/LocateControl.tsx | 1 - src/Components/Map/UtopiaMap.tsx | 2 -- src/Components/Map/UtopiaMapInner.tsx | 3 --- src/Components/Profile/Subcomponents/AvatarWidget.tsx | 1 - src/Components/Profile/Subcomponents/ColorPicker.tsx | 1 - src/index.tsx | 1 - 6 files changed, 9 deletions(-) diff --git a/src/Components/Map/Subcomponents/Controls/LocateControl.tsx b/src/Components/Map/Subcomponents/Controls/LocateControl.tsx index d0eeec4a..6bd649ec 100644 --- a/src/Components/Map/Subcomponents/Controls/LocateControl.tsx +++ b/src/Components/Map/Subcomponents/Controls/LocateControl.tsx @@ -9,7 +9,6 @@ import { useEffect, useRef, useState } from 'react' import { useMap, useMapEvents } from 'react-leaflet' // eslint-disable-next-line import/no-unassigned-import import 'leaflet.locatecontrol' -// eslint-disable-next-line import/no-unassigned-import import 'leaflet.locatecontrol/dist/L.Control.Locate.css' // Converts leaflet.locatecontrol to a React Component diff --git a/src/Components/Map/UtopiaMap.tsx b/src/Components/Map/UtopiaMap.tsx index 5d5afb9f..5fcb292d 100644 --- a/src/Components/Map/UtopiaMap.tsx +++ b/src/Components/Map/UtopiaMap.tsx @@ -6,8 +6,6 @@ import { ContextWrapper } from '#components/AppShell/ContextWrapper' import { UtopiaMapInner } from './UtopiaMapInner' import type { UtopiaMapProps } from '#types/UtopiaMapProps' - -// eslint-disable-next-line import/no-unassigned-import import 'react-toastify/dist/ReactToastify.css' function UtopiaMap({ diff --git a/src/Components/Map/UtopiaMapInner.tsx b/src/Components/Map/UtopiaMapInner.tsx index fc325098..5e28be9b 100644 --- a/src/Components/Map/UtopiaMapInner.tsx +++ b/src/Components/Map/UtopiaMapInner.tsx @@ -8,13 +8,10 @@ /* eslint-disable @typescript-eslint/no-unsafe-argument */ import { Children, cloneElement, isValidElement, useEffect, useRef, useState } from 'react' import { TileLayer, useMapEvents, GeoJSON, useMap } from 'react-leaflet' -// eslint-disable-next-line import/no-unassigned-import import 'leaflet/dist/leaflet.css' import MarkerClusterGroup from 'react-leaflet-cluster' import { Outlet, useLocation } from 'react-router-dom' import { toast } from 'react-toastify' - -// eslint-disable-next-line import/no-unassigned-import import './UtopiaMap.css' import { containsUUID } from '#utils/ContainsUUID' diff --git a/src/Components/Profile/Subcomponents/AvatarWidget.tsx b/src/Components/Profile/Subcomponents/AvatarWidget.tsx index ab4be26d..b67c2c52 100644 --- a/src/Components/Profile/Subcomponents/AvatarWidget.tsx +++ b/src/Components/Profile/Subcomponents/AvatarWidget.tsx @@ -6,7 +6,6 @@ import { useState, useCallback, useRef } from 'react' import { ReactCrop, centerCrop, makeAspectCrop } from 'react-image-crop' import { useAppState } from '#components/AppShell/hooks/useAppState' -// eslint-disable-next-line import/no-unassigned-import import 'react-image-crop/dist/ReactCrop.css' import DialogModal from '#components/Templates/DialogModal' diff --git a/src/Components/Profile/Subcomponents/ColorPicker.tsx b/src/Components/Profile/Subcomponents/ColorPicker.tsx index abe199f7..84160fc0 100644 --- a/src/Components/Profile/Subcomponents/ColorPicker.tsx +++ b/src/Components/Profile/Subcomponents/ColorPicker.tsx @@ -5,7 +5,6 @@ import { useCallback, useEffect, useRef, useState } from 'react' import { HexColorPicker } from 'react-colorful' -// eslint-disable-next-line import/no-unassigned-import import './ColorPicker.css' import useClickOutside from '#components/Profile/hooks/useClickOutside' diff --git a/src/index.tsx b/src/index.tsx index 5cacee86..145d1719 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,4 +1,3 @@ -// eslint-disable-next-line import/no-unassigned-import import './index.css' export {