Skip to content

Commit

Permalink
disable import/no-default-export rule for next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wakamsha committed Mar 29, 2024
1 parent a8908d6 commit e15a780
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rules/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@ module.exports = {
// https://github.com/vercel/next.js/blob/v14.1.3/packages/eslint-plugin-next/src/index.ts#L56
'plugin:@next/next/core-web-vitals',
],
rules: {},

overrides: [
{
files: ['**/pages/**/*.@(tsx|jsx)', '*.page.@(tsx|jsx)'],
rules: {
'import/no-default-export': ['off'],
},
},
],
};

0 comments on commit e15a780

Please sign in to comment.