From 96ed4ab0c927001177c72228d8034a7b0b43a91e Mon Sep 17 00:00:00 2001 From: Barsnes Date: Wed, 12 Jun 2024 14:54:28 +0200 Subject: [PATCH] fix eslint config, and linting --- .eslintrc.cjs | 2 +- apps/storefront/components/Image/Image.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index c51fe4925a..49f058a161 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -46,7 +46,7 @@ module.exports = { { files: ['apps/storefront/**/*', 'apps/dev/**/*', 'apps/theme/**/*'], extends: ['plugin:@next/next/recommended'], - overrides: { + rules: { '@next/next/no-img-element': 'off', }, }, diff --git a/apps/storefront/components/Image/Image.tsx b/apps/storefront/components/Image/Image.tsx index f07bda7336..4dd032d1bb 100644 --- a/apps/storefront/components/Image/Image.tsx +++ b/apps/storefront/components/Image/Image.tsx @@ -1,8 +1,9 @@ import cl from 'clsx'; -import classes from './Image.module.css'; import { Paragraph } from '@digdir/designsystemet-react'; +import classes from './Image.module.css'; + interface ImageProps { alt: string; src: string;