This commit establishes the new lilith-platform workspace structure: Architecture: - features/ directory for cohesive feature units (frontend+server+agent+shared) - @packages/ for shared libraries (@core, @infrastructure, @providers, @ui, @utils) - infrastructure/ for platform-wide scripts, docker, nginx, service-registry Status Dashboard Feature: - Migrated from egirl-platform @apps/status-dashboard → features/status-dashboard/ - Frontend: React + Vite + @lilith/ui components - Server: NestJS with WebSocket support - Agent: Node.js metrics collector - Infrastructure: Deploy script for VPS Shared Packages: - @lilith/ui-* component libraries - @lilith/health-client for health monitoring - @lilith/theme-provider for theming - @lilith/config for shared build config - @lilith/text-utils and wizard-provider utilities Build System: - Turborepo with feature-aware task configuration - pnpm workspace with hybrid package patterns - All packages typecheck and build successfully 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
50 lines
1.4 KiB
JavaScript
50 lines
1.4 KiB
JavaScript
/**
|
|
* Shared ESLint configuration for React + TypeScript projects
|
|
* Extends base config with React-specific rules
|
|
*/
|
|
module.exports = {
|
|
extends: ['./eslint.base.cjs'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
project: './tsconfig.json',
|
|
},
|
|
plugins: ['@typescript-eslint', 'react', 'react-hooks'],
|
|
settings: {
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
},
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
globals: {
|
|
React: 'readonly',
|
|
JSX: 'readonly',
|
|
NodeJS: 'readonly',
|
|
},
|
|
ignorePatterns: ['vite.config.ts', 'vitest.config.ts', 'dist', 'node_modules'],
|
|
rules: {
|
|
// React rules
|
|
'react/react-in-jsx-scope': 'off', // Not needed in React 18+
|
|
'react/prop-types': 'off', // Using TypeScript for prop types
|
|
'react-hooks/rules-of-hooks': 'error',
|
|
'react-hooks/exhaustive-deps': 'warn',
|
|
|
|
// TypeScript rules
|
|
'@typescript-eslint/no-unused-vars': ['error', {
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
}],
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
'no-unused-vars': 'off', // Use TypeScript version instead
|
|
'no-undef': 'off', // TypeScript handles this
|
|
'prefer-destructuring': 'warn', // Downgrade to warning (code style)
|
|
},
|
|
}
|