Skip to content

Commit

Permalink
chore: remove img warning from linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dmijatovic committed May 11, 2023
1 parent 6fb2ed2 commit e135e18
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 17 deletions.
4 changes: 3 additions & 1 deletion frontend/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
"name": "@mui/material",
"message": "Please use \"import foo from '@mui/material/foo'\" instead."
}
]
],
// do not warn for use of img element
"@next/next/no-img-element":"off"
}
}
2 changes: 0 additions & 2 deletions frontend/components/home/helmholtz/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
//
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable @next/next/no-img-element */

import AppHeader from '~/components/AppHeader'
import AppFooter from '~/components/AppFooter'
import Link from 'next/link'
Expand Down
1 change: 0 additions & 1 deletion frontend/components/layout/ImageAsBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable @next/next/no-img-element */
import PhotoSizeSelectActualOutlinedIcon from '@mui/icons-material/PhotoSizeSelectActualOutlined'

type ImageAsBackgroundProps = {
Expand Down
5 changes: 2 additions & 3 deletions frontend/components/layout/ImageWithPlaceholder.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2022 dv4all
// SPDX-FileCopyrightText: 2022 - 2023 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2022 - 2023 dv4all
//
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable @next/next/no-img-element */
import PhotoSizeSelectActualOutlinedIcon from '@mui/icons-material/PhotoSizeSelectActualOutlined'

export type ImageWithPlaceholderProps = {
Expand Down
2 changes: 0 additions & 2 deletions frontend/components/organisation/OrganisationCardV2.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @next/next/no-img-element */
// SPDX-FileCopyrightText: 2022 - 2023 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2022 - 2023 dv4all
// SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) (dv4all)
Expand All @@ -7,7 +6,6 @@

import Link from 'next/link'
import {getImageUrl} from '~/utils/editImage'
import StatCounter from '~/components/layout/StatCounter'

export type OrganisationCardProps = {
id: string,
Expand Down
1 change: 0 additions & 1 deletion frontend/components/person/AvatarOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable @next/next/no-img-element */
import {ChangeEvent} from 'react'
import Box from '@mui/material/Box'
import Avatar from '@mui/material/Avatar'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable @next/next/no-img-element */
import {ChangeEvent} from 'react'
import {UseFormSetValue, UseFormWatch} from 'react-hook-form'

Expand Down
5 changes: 2 additions & 3 deletions frontend/components/software/ContactPersonCard.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2022 - 2023 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2022 - 2023 dv4all
// SPDX-FileCopyrightText: 2022 Ewan Cahen (Netherlands eScience Center) <[email protected]>
// SPDX-FileCopyrightText: 2022 Netherlands eScience Center
// SPDX-FileCopyrightText: 2022 dv4all
//
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable @next/next/no-img-element */
import EmailIcon from '@mui/icons-material/Email'
import Avatar from '@mui/material/Avatar'
import {getImageUrl} from '~/utils/editImage'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable @next/next/no-img-element */
import {ChangeEvent} from 'react'
import {UseFormSetValue, UseFormWatch} from 'react-hook-form'

Expand Down
1 change: 0 additions & 1 deletion frontend/components/software/overview/SoftwareCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable @next/next/no-img-element */
import Link from 'next/link'
import {SoftwareListItem} from '~/types/SoftwareTypes'
import {getImageUrl} from '~/utils/editImage'
Expand Down
1 change: 0 additions & 1 deletion frontend/components/software/overview/SoftwareGridCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable @next/next/no-img-element */
import Link from 'next/link'

import {SoftwareListItem} from '~/types/SoftwareTypes'
Expand Down

0 comments on commit e135e18

Please sign in to comment.