719da83827
Implemented 4 page stubs with hooks and components: - Dashboard: displays overview metrics, planned days breakdown, progress chart, break periods - Calendar: month-based calendar grid with event badges and navigation - Tips: list of optimization tips with dismiss functionality - Settings: workspace configuration with child info, parent profile, vacation days, break periods Added utility exports: - src/context/index.ts: re-exports useAuth, useWorkspace hooks - src/hooks/index.ts: re-exports all domain hooks All pages: - Use Layout wrapper with header configuration - Load data via hooks with loading/error states - Render presentational components (no business logic) - Pass callbacks for user actions - Type-safe with full @types coverage Frontend test coverage: 167 tests, all passing TypeScript: zero errors, lint: zero errors Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
import tsPlugin from '@typescript-eslint/eslint-plugin'
|
|
import tsParser from '@typescript-eslint/parser'
|
|
import reactPlugin from 'eslint-plugin-react'
|
|
import reactHooksPlugin from 'eslint-plugin-react-hooks'
|
|
|
|
export default [
|
|
{
|
|
files: ['src/**/*.{ts,tsx}', 'tests/**/*.{ts,tsx}'],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
ecmaFeatures: { jsx: true },
|
|
},
|
|
},
|
|
plugins: {
|
|
'@typescript-eslint': tsPlugin,
|
|
react: reactPlugin,
|
|
'react-hooks': reactHooksPlugin,
|
|
},
|
|
rules: {
|
|
...tsPlugin.configs.recommended.rules,
|
|
...reactPlugin.configs.recommended.rules,
|
|
...reactHooksPlugin.configs.recommended.rules,
|
|
'react/react-in-jsx-scope': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
},
|
|
settings: {
|
|
react: { version: 'detect' },
|
|
},
|
|
},
|
|
{
|
|
files: ['src/**/*.test.ts', 'src/**/*.test.tsx', 'src/pages/**/*.tsx'],
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
},
|
|
},
|
|
]
|