Skip to content

Commit 35b09ac

Browse files
authored
chore: Add lint warning on using default exports in the apps (except in app and pages folder) (supabase#37952)
Add lint warning on using default exports in the apps (except in app and pages folders).
1 parent e790c92 commit 35b09ac

File tree

1 file changed

+9
-0
lines changed
  • packages/eslint-config-supabase

1 file changed

+9
-0
lines changed

packages/eslint-config-supabase/next.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,14 @@ module.exports = {
33
rules: {
44
'@next/next/no-html-link-for-pages': 'off',
55
'react/jsx-key': 'off',
6+
'no-restricted-exports': ['warn', { restrictDefaultExports: { direct: true } }],
67
},
8+
overrides: [
9+
{
10+
files: ['pages/**', 'app/**'],
11+
rules: {
12+
'no-restricted-exports': 'off',
13+
},
14+
},
15+
],
716
}

0 commit comments

Comments
 (0)