// SPDX-FileCopyrightText: 2026 Coffey Labs LLC // SPDX-License-Identifier: AGPL-3.0-only import js from '@eslint/js' import prettier from 'eslint-config-prettier' import reactHooks from 'eslint-plugin-react-hooks' import reactRefresh from 'eslint-plugin-react-refresh' import { defineConfig, globalIgnores } from 'eslint/config' import globals from 'globals' import tseslint from 'typescript-eslint' export default defineConfig([ globalIgnores(['dist']), { // The recommended rules for TypeScript and React hooks; prettier last, // so formatting is prettier's alone. files: ['**/*.{ts,tsx}'], extends: [ js.configs.recommended, tseslint.configs.recommended, reactHooks.configs.flat.recommended, reactRefresh.configs.vite, prettier, ], languageOptions: { ecmaVersion: 2023, globals: globals.browser }, }, { // The base components export variants and helpers beside components. files: ['src/components/ui/**/*.{ts,tsx}'], rules: { 'react-refresh/only-export-components': 'off' }, }, ])