Files
supabase/apps/studio/eslint.config.cjs
Ivan Vasilov 56d40fe0b2 chore: Migrate eslint for all apps to use flat config (#39486)
* Use the "eslint" command instead of built-in next lint since it's getting obsolete.

* Bump all deps to support eslint 9+.

* Convert the rules in eslint-config-supabase to be flat-config compatible.

* Migrate all apps to use the new eslint config rules.

* Fix all errors found in the new setup.

* Fix the no default exports ignores.

* Scan all files for linting in studio.

* Fix all lint errors.

* Make the reportUnusedDisableDirectives a warning.
2025-10-15 16:35:24 +02:00

20 lines
521 B
JavaScript

const { defineConfig } = require('eslint/config')
const barrelFiles = require('eslint-plugin-barrel-files')
const supabaseConfig = require('eslint-config-supabase/next')
module.exports = defineConfig([
{ files: ['**/*.ts', '**/*.tsx'] },
supabaseConfig,
{
plugins: {
'barrel-files': barrelFiles,
},
rules: {
'@next/next/no-img-element': 'off',
'react/no-unescaped-entities': 'off',
'react/display-name': 'warn',
'barrel-files/avoid-re-export-all': 'error',
},
},
])