Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: Add lint warning on using default exports in the apps (except in app and pages folder) (#37952)

Ivan Vasilov35b09ac55c9f
diff --git a/packages/eslint-config-supabase/next.js b/packages/eslint-config-supabase/next.js
index d9a36a7bd92..f3f39c45b66 100644
--- a/packages/eslint-config-supabase/next.js
+++ b/packages/eslint-config-supabase/next.js
@@ -3,5 +3,14 @@ module.exports = {
rules: {
'@next/next/no-html-link-for-pages': 'off',
'react/jsx-key': 'off',
+ 'no-restricted-exports': ['warn', { restrictDefaultExports: { direct: true } }],
},
+ overrides: [
+ {
+ files: ['pages/**', 'app/**'],
+ rules: {
+ 'no-restricted-exports': 'off',
+ },
+ },
+ ],
}