freshyo/apps/fallback-ui/eslint.config.js
2026-01-24 00:13:15 +05:30

34 lines
775 B
JavaScript

import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
export default tseslint.config(
{
ignores: ['dist']
},
{
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended
],
files: ['src/**/*.{ts,tsx}'],
languageOptions: {
parserOptions: {
project: false
}
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh
},
rules: {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true }
]
}
}
)