Skip to content

Commit

Permalink
remove eslint disables not in use
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jun 20, 2024
1 parent e29fad1 commit 60275b7
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion apps/storefront/app/bloggen/_components/Card/BlogCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @next/next/no-img-element */
import {
Card,
CardContent,
Expand Down
5 changes: 2 additions & 3 deletions apps/storefront/components/ImageBanner/ImageBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use client';
/* eslint-disable @next/next/no-img-element */
import type React from 'react';
import type { ButtonProps } from '@digdir/designsystemet-react';
import { useEffect, useState, createElement } from 'react';
Expand Down Expand Up @@ -137,9 +136,9 @@ const ImageBanner = ({
{buttons.map((item, index) => (
<Button
key={index}
asChild
variant={item.variant ?? 'secondary'}
color={item.color}
color={item.color ?? 'accent'}
asChild
>
<a
href={item.href}
Expand Down
1 change: 0 additions & 1 deletion apps/theme/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @next/next/no-img-element */
import Link from 'next/link';
import { usePathname } from 'next/navigation';

Expand Down
1 change: 0 additions & 1 deletion apps/theme/components/Previews/Components/Components.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @next/next/no-img-element */
import cl from 'clsx/lite';
import { useState } from 'react';
import {
Expand Down
1 change: 0 additions & 1 deletion apps/theme/components/Previews/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @next/next/no-img-element */
import {
HouseIcon,
CogIcon,
Expand Down
1 change: 0 additions & 1 deletion apps/theme/components/Previews/Previews.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @next/next/no-img-element */
import { useState } from 'react';
import cl from 'clsx/lite';
import type { Mode } from '@digdir/designsystemet/color';
Expand Down
3 changes: 1 addition & 2 deletions apps/theme/components/TokenModal/TokenModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable @next/next/no-img-element */
/* eslint-disable react-hooks/exhaustive-deps */
'use client';

import {
Expand Down Expand Up @@ -157,6 +155,7 @@ export const TokenModal = ({
const darkCSS = generateCSSVars('dark');
const contrastCSS = generateCSSVars('contrast');
setCss(lightCSS + darkCSS + contrastCSS);
// eslint-disable-next-line react-hooks/exhaustive-deps

Check warning on line 158 in apps/theme/components/TokenModal/TokenModal.tsx

View workflow job for this annotation

GitHub Actions / Builds, lints and tests code

React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior
}, []);

return (
Expand Down

0 comments on commit 60275b7

Please sign in to comment.