Skip to content

Commit

Permalink
add required file names
Browse files Browse the repository at this point in the history
  • Loading branch information
wakamsha committed Apr 2, 2024
1 parent 9adc789 commit b1e20b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rules/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ module.exports = {
files: [
'**/pages/**/*.@(tsx|jsx|js)',
'*.page.@(tsx|jsx|js)',
'**/app/**/@(page|layout).@(tsx|jsx|js)',
// Files with these names allow `default export` according to the Next.js specifications.
// https://nextjs.org/docs/app/api-reference/file-conventions
'**/app/**/@(default|error|layout|loading|middleware|not-found|page|template).*',
],
rules: {
'import/no-default-export': ['off'],
Expand Down

0 comments on commit b1e20b4

Please sign in to comment.