diff --git a/apps/config-validation-playground/src/mocks/InfoButton.tsx b/apps/config-validation-playground/src/mocks/InfoButton.tsx index 859cb666..bc8c3d09 100644 --- a/apps/config-validation-playground/src/mocks/InfoButton.tsx +++ b/apps/config-validation-playground/src/mocks/InfoButton.tsx @@ -1,3 +1,5 @@ +/* eslint-disable react/function-component-definition */ + import type { JSX } from 'react'; interface InfoButtonProps { diff --git a/apps/config-validation-playground/src/samples/react.tsx b/apps/config-validation-playground/src/samples/react.tsx index c9b598f2..9a7d75af 100644 --- a/apps/config-validation-playground/src/samples/react.tsx +++ b/apps/config-validation-playground/src/samples/react.tsx @@ -1,3 +1,5 @@ +/* eslint-disable react/function-component-definition */ + import type { JSX } from 'react'; export const MyComponent = (): JSX.Element => { diff --git a/packages/eslint-config-sheriff/src/nextjsConfig.ts b/packages/eslint-config-sheriff/src/nextjsConfig.ts index 3d61e4a1..0e90dc45 100644 --- a/packages/eslint-config-sheriff/src/nextjsConfig.ts +++ b/packages/eslint-config-sheriff/src/nextjsConfig.ts @@ -18,5 +18,6 @@ export const nextjsConfig = { unnamedComponents: 'function-expression', }, ], + '@next/next/no-html-link-for-pages': 0, // pages router is legacy at this point. We don't need to support this rule anymore. }, };