Skip to content

Commit

Permalink
chore: add Next.js router segment config for eslint-plugin-react-refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyu1818 committed Sep 13, 2024
1 parent 90fae1d commit 00dbb4f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/configs/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ export async function react(
allowExportNames: [
...(isUsingNext
? [
'dynamic',
'dynamicParams',
'revalidate',
'fetchCache',
'runtime',
'preferredRegion',
'maxDuration',
'config',
'generateStaticParams',
'metadata',
Expand Down

0 comments on commit 00dbb4f

Please sign in to comment.