mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 02:13:41 +00:00
- Add zustand dependency for modern state management - Create three separate stores for better code organization: - useMachineStore: Machine connection, status, and operations - usePatternStore: Pattern data, offset, and upload state - useUIStore: Pyodide and UI-specific state - Migrate App.tsx from useBrotherMachine hook to Zustand stores - Use useShallow for optimized multi-value selections - Implement dynamic polling intervals based on machine state - Add ESLint ignore for .vite build directory Benefits: - Better separation of concerns with logical store divisions - Improved performance through selector-based subscriptions - Cleaner code replacing 445-line hook with maintainable stores - Full TypeScript support with proper typing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
23 lines
625 B
JavaScript
23 lines
625 B
JavaScript
import js from '@eslint/js'
|
|
import globals from 'globals'
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
import tseslint from 'typescript-eslint'
|
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
|
|
export default defineConfig([
|
|
globalIgnores(['dist', '.vite']),
|
|
{
|
|
files: ['**/*.{ts,tsx}'],
|
|
extends: [
|
|
js.configs.recommended,
|
|
tseslint.configs.recommended,
|
|
reactHooks.configs.flat.recommended,
|
|
reactRefresh.configs.vite,
|
|
],
|
|
languageOptions: {
|
|
ecmaVersion: 2020,
|
|
globals: globals.browser,
|
|
},
|
|
},
|
|
])
|