mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
Merge pull request #93 from utopia-os/disabled-no-unassigned-import-for-css
fix(workflow): disabled no-unassigned-import for css
This commit is contained in:
commit
297435fd47
@ -108,7 +108,12 @@ module.exports = {
|
|||||||
'import/no-duplicates': 'error',
|
'import/no-duplicates': 'error',
|
||||||
'import/no-named-default': 'error',
|
'import/no-named-default': 'error',
|
||||||
'import/no-namespace': 'error',
|
'import/no-namespace': 'error',
|
||||||
'import/no-unassigned-import': 'error',
|
'import/no-unassigned-import': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
allow: ['**/*.css'],
|
||||||
|
},
|
||||||
|
],
|
||||||
'import/order': [
|
'import/order': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,7 +9,6 @@ import { useEffect, useRef, useState } from 'react'
|
|||||||
import { useMap, useMapEvents } from 'react-leaflet'
|
import { useMap, useMapEvents } from 'react-leaflet'
|
||||||
// eslint-disable-next-line import/no-unassigned-import
|
// eslint-disable-next-line import/no-unassigned-import
|
||||||
import 'leaflet.locatecontrol'
|
import 'leaflet.locatecontrol'
|
||||||
// eslint-disable-next-line import/no-unassigned-import
|
|
||||||
import 'leaflet.locatecontrol/dist/L.Control.Locate.css'
|
import 'leaflet.locatecontrol/dist/L.Control.Locate.css'
|
||||||
|
|
||||||
// Converts leaflet.locatecontrol to a React Component
|
// Converts leaflet.locatecontrol to a React Component
|
||||||
|
|||||||
@ -6,8 +6,6 @@ import { ContextWrapper } from '#components/AppShell/ContextWrapper'
|
|||||||
import { UtopiaMapInner } from './UtopiaMapInner'
|
import { UtopiaMapInner } from './UtopiaMapInner'
|
||||||
|
|
||||||
import type { UtopiaMapProps } from '#types/UtopiaMapProps'
|
import type { UtopiaMapProps } from '#types/UtopiaMapProps'
|
||||||
|
|
||||||
// eslint-disable-next-line import/no-unassigned-import
|
|
||||||
import 'react-toastify/dist/ReactToastify.css'
|
import 'react-toastify/dist/ReactToastify.css'
|
||||||
|
|
||||||
function UtopiaMap({
|
function UtopiaMap({
|
||||||
|
|||||||
@ -8,13 +8,10 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||||
import { Children, cloneElement, isValidElement, useEffect, useRef, useState } from 'react'
|
import { Children, cloneElement, isValidElement, useEffect, useRef, useState } from 'react'
|
||||||
import { TileLayer, useMapEvents, GeoJSON, useMap } from 'react-leaflet'
|
import { TileLayer, useMapEvents, GeoJSON, useMap } from 'react-leaflet'
|
||||||
// eslint-disable-next-line import/no-unassigned-import
|
|
||||||
import 'leaflet/dist/leaflet.css'
|
import 'leaflet/dist/leaflet.css'
|
||||||
import MarkerClusterGroup from 'react-leaflet-cluster'
|
import MarkerClusterGroup from 'react-leaflet-cluster'
|
||||||
import { Outlet, useLocation } from 'react-router-dom'
|
import { Outlet, useLocation } from 'react-router-dom'
|
||||||
import { toast } from 'react-toastify'
|
import { toast } from 'react-toastify'
|
||||||
|
|
||||||
// eslint-disable-next-line import/no-unassigned-import
|
|
||||||
import './UtopiaMap.css'
|
import './UtopiaMap.css'
|
||||||
|
|
||||||
import { containsUUID } from '#utils/ContainsUUID'
|
import { containsUUID } from '#utils/ContainsUUID'
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import { useState, useCallback, useRef } from 'react'
|
|||||||
import { ReactCrop, centerCrop, makeAspectCrop } from 'react-image-crop'
|
import { ReactCrop, centerCrop, makeAspectCrop } from 'react-image-crop'
|
||||||
|
|
||||||
import { useAppState } from '#components/AppShell/hooks/useAppState'
|
import { useAppState } from '#components/AppShell/hooks/useAppState'
|
||||||
// eslint-disable-next-line import/no-unassigned-import
|
|
||||||
import 'react-image-crop/dist/ReactCrop.css'
|
import 'react-image-crop/dist/ReactCrop.css'
|
||||||
import DialogModal from '#components/Templates/DialogModal'
|
import DialogModal from '#components/Templates/DialogModal'
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,6 @@
|
|||||||
import { useCallback, useEffect, useRef, useState } from 'react'
|
import { useCallback, useEffect, useRef, useState } from 'react'
|
||||||
import { HexColorPicker } from 'react-colorful'
|
import { HexColorPicker } from 'react-colorful'
|
||||||
|
|
||||||
// eslint-disable-next-line import/no-unassigned-import
|
|
||||||
import './ColorPicker.css'
|
import './ColorPicker.css'
|
||||||
import useClickOutside from '#components/Profile/hooks/useClickOutside'
|
import useClickOutside from '#components/Profile/hooks/useClickOutside'
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
// eslint-disable-next-line import/no-unassigned-import
|
|
||||||
import './index.css'
|
import './index.css'
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user