mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
* 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.
20 lines
521 B
JavaScript
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',
|
|
},
|
|
},
|
|
])
|