mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? The changes required for this React Doctor need more thought that I can hammer with AI. Just need to stop this from happening in the future with Ratchet rules
26 lines
774 B
JavaScript
26 lines
774 B
JavaScript
const { defineConfig } = require('eslint/config')
|
|
const barrelFiles = require('eslint-plugin-barrel-files')
|
|
const jsxA11y = require('eslint-plugin-jsx-a11y')
|
|
const supabaseConfig = require('eslint-config-supabase/next')
|
|
|
|
module.exports = defineConfig([
|
|
{ files: ['**/*.ts', '**/*.tsx'] },
|
|
supabaseConfig,
|
|
{
|
|
plugins: {
|
|
'barrel-files': barrelFiles,
|
|
'jsx-a11y': jsxA11y,
|
|
},
|
|
rules: {
|
|
'@next/next/no-img-element': 'off',
|
|
'react/no-unescaped-entities': 'off',
|
|
'react/display-name': 'warn',
|
|
'react/no-unstable-nested-components': 'warn',
|
|
'react/jsx-key': 'error',
|
|
'barrel-files/avoid-re-export-all': 'error',
|
|
'jsx-a11y/alt-text': 'warn',
|
|
'jsx-a11y/role-has-required-aria-props': 'error',
|
|
},
|
|
},
|
|
])
|