Skip to content

Commit

Permalink
feature(rules): disabled a nextjs rule
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaPontrandolfo committed Nov 1, 2024
1 parent fcc56c9 commit 187e43c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/config-validation-playground/src/mocks/InfoButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable react/function-component-definition */

import type { JSX } from 'react';

interface InfoButtonProps {
Expand Down
2 changes: 2 additions & 0 deletions apps/config-validation-playground/src/samples/react.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable react/function-component-definition */

import type { JSX } from 'react';

export const MyComponent = (): JSX.Element => {
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-sheriff/src/nextjsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
},
};

0 comments on commit 187e43c

Please sign in to comment.