2026-03-27 15:55:08 +01:00
|
|
|
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
|
|
|
|
|
import storybook from 'eslint-plugin-storybook'
|
|
|
|
|
|
2026-02-21 16:30:21 +01:00
|
|
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
|
|
|
import nextVitals from 'eslint-config-next/core-web-vitals'
|
|
|
|
|
import prettier from 'eslint-config-prettier/flat'
|
|
|
|
|
|
|
|
|
|
const eslintConfig = defineConfig([
|
|
|
|
|
...nextVitals,
|
|
|
|
|
prettier,
|
|
|
|
|
{
|
|
|
|
|
// TODO: fix these react-hooks issues then remove these overrides
|
|
|
|
|
rules: {
|
|
|
|
|
'react-hooks/error-boundaries': 'warn',
|
|
|
|
|
'react-hooks/set-state-in-effect': 'warn',
|
|
|
|
|
'react-hooks/refs': 'warn',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
globalIgnores([
|
|
|
|
|
'.next/**',
|
|
|
|
|
'out/**',
|
|
|
|
|
'build/**',
|
|
|
|
|
'next-env.d.ts',
|
|
|
|
|
'frontend/**',
|
|
|
|
|
'api/**',
|
|
|
|
|
'ruby-backend/**',
|
|
|
|
|
'debats-elixir/**',
|
|
|
|
|
'content/**',
|
|
|
|
|
'docs/**',
|
|
|
|
|
'scripts/**',
|
|
|
|
|
]),
|
2026-03-27 15:55:08 +01:00
|
|
|
...storybook.configs['flat/recommended'],
|
2026-02-21 16:30:21 +01:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
export default eslintConfig
|