mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
fix formating errors with eslint ignore comments
This commit is contained in:
parent
6ae276bedf
commit
2746844f07
@ -88,7 +88,6 @@ export const Layer = ({
|
|||||||
const visibleGroupTypes = useVisibleGroupType()
|
const visibleGroupTypes = useVisibleGroupType()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// eslint-disable-next-line camelcase
|
|
||||||
data &&
|
data &&
|
||||||
setItemsData({
|
setItemsData({
|
||||||
data,
|
data,
|
||||||
@ -115,13 +114,13 @@ export const Layer = ({
|
|||||||
onlyOnePerOwner,
|
onlyOnePerOwner,
|
||||||
customEditLink,
|
customEditLink,
|
||||||
customEditParameter,
|
customEditParameter,
|
||||||
|
// eslint-disable-next-line camelcase
|
||||||
public_edit_items,
|
public_edit_items,
|
||||||
listed,
|
listed,
|
||||||
setItemFormPopup,
|
setItemFormPopup,
|
||||||
itemFormPopup,
|
itemFormPopup,
|
||||||
clusterRef,
|
clusterRef,
|
||||||
})
|
})
|
||||||
// eslint-disable-next-line camelcase
|
|
||||||
api &&
|
api &&
|
||||||
setItemsApi({
|
setItemsApi({
|
||||||
data,
|
data,
|
||||||
@ -148,6 +147,7 @@ export const Layer = ({
|
|||||||
onlyOnePerOwner,
|
onlyOnePerOwner,
|
||||||
customEditLink,
|
customEditLink,
|
||||||
customEditParameter,
|
customEditParameter,
|
||||||
|
// eslint-disable-next-line camelcase
|
||||||
public_edit_items,
|
public_edit_items,
|
||||||
listed,
|
listed,
|
||||||
setItemFormPopup,
|
setItemFormPopup,
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
import SocialShareButton from './SocialShareButton'
|
import SocialShareButton from './SocialShareButton'
|
||||||
|
|
||||||
// eslint-disable-next-line react/prop-types
|
|
||||||
const SocialShareBar = ({
|
const SocialShareBar = ({
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
url,
|
url,
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
title,
|
title,
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
platforms = ['facebook', 'twitter', 'linkedin', 'xing', 'email'],
|
platforms = ['facebook', 'twitter', 'linkedin', 'xing', 'email'],
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -29,10 +29,10 @@ export const TagsWidget = ({ placeholder, containerStyle, defaultTags, onUpdate
|
|||||||
const { key } = e
|
const { key } = e
|
||||||
const trimmedInput = input.trim()
|
const trimmedInput = input.trim()
|
||||||
|
|
||||||
// eslint-disable-next-line react/prop-types
|
|
||||||
if (
|
if (
|
||||||
(key === 'Enter' || key === ',') &&
|
(key === 'Enter' || key === ',') &&
|
||||||
trimmedInput.length &&
|
trimmedInput.length &&
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
!defaultTags.some((tag) => tag.name.toLocaleLowerCase() === trimmedInput.toLocaleLowerCase())
|
!defaultTags.some((tag) => tag.name.toLocaleLowerCase() === trimmedInput.toLocaleLowerCase())
|
||||||
) {
|
) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|||||||
@ -33,8 +33,8 @@ export const TabsForm = ({
|
|||||||
const newUrl = location.pathname + '?' + params.toString()
|
const newUrl = location.pathname + '?' + params.toString()
|
||||||
window.history.pushState({}, '', newUrl)
|
window.history.pushState({}, '', newUrl)
|
||||||
setUrlParams(params)
|
setUrlParams(params)
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
||||||
},
|
},
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
[location.pathname],
|
[location.pathname],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -64,8 +64,8 @@ export const TabsView = ({
|
|||||||
params.set('tab', `${id}`)
|
params.set('tab', `${id}`)
|
||||||
const newUrl = location.pathname + '?' + params.toString()
|
const newUrl = location.pathname + '?' + params.toString()
|
||||||
window.history.pushState({}, '', newUrl)
|
window.history.pushState({}, '', newUrl)
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
||||||
},
|
},
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
[location.pathname],
|
[location.pathname],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,17 @@
|
|||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
|
|
||||||
// eslint-disable-next-line react/prop-types
|
|
||||||
export const EmojiPicker = ({
|
export const EmojiPicker = ({
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
selectedEmoji,
|
selectedEmoji,
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
selectedColor,
|
selectedColor,
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
selectedShape,
|
selectedShape,
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
setSelectedEmoji,
|
setSelectedEmoji,
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
setSelectedColor,
|
setSelectedColor,
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
setSelectedShape,
|
setSelectedShape,
|
||||||
}) => {
|
}) => {
|
||||||
const [isOpen, setIsOpen] = useState(false)
|
const [isOpen, setIsOpen] = useState(false)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
// eslint-disable-next-line no-useless-escape
|
|
||||||
export const urlRegex =
|
export const urlRegex =
|
||||||
|
// eslint-disable-next-line no-useless-escape
|
||||||
/(^| )(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,10}(:[0-9]{1,10})?(\/.*)?$/gm
|
/(^| )(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,10}(:[0-9]{1,10})?(\/.*)?$/gm
|
||||||
export const mailRegex = /([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi
|
export const mailRegex = /([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user