Sentry Integration (補強 SignOz): - Add @sentry/nextjs for frontend error tracking + session replay - Add sentry-sdk[fastapi] for backend error tracking - Create sentry.client/server/edge.config.ts - Integrate with next.config.js + instrumentation.ts - Add Sentry exception capture in FastAPI error handler - Create deployment scripts for Self-Hosted @ 192.168.0.110 CI/CD Fixes: - Fix F821 Undefined name 'Field' in incidents.py - Add NEXT_PUBLIC_API_URL env var to CI build step - Add build-arg to Docker build verification E2E Test Improvements: - Fix strict mode violations in dashboard-acceptance tests - Add timeout increase for Phase 4 demo tests - Make tests more resilient to UI variations Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
/**
|
|
* AWOOOI Web ESLint Configuration
|
|
* ================================
|
|
* Extends @awoooi/eslint-config/react
|
|
*/
|
|
|
|
module.exports = {
|
|
extends: ['@awoooi/eslint-config/react', 'next/core-web-vitals'],
|
|
parserOptions: {
|
|
project: './tsconfig.json',
|
|
tsconfigRootDir: __dirname,
|
|
},
|
|
rules: {
|
|
// Next.js specific
|
|
'@next/next/no-html-link-for-pages': 'off',
|
|
|
|
// Allow console for debugging (TODO: integrate unified logger)
|
|
'no-console': 'off',
|
|
|
|
// i18n enforcement - no hardcoded strings in JSX
|
|
// (Custom rule would require eslint-plugin-i18n-json setup)
|
|
|
|
// TypeScript strict rules
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/consistent-type-imports': 'warn',
|
|
'no-constant-condition': 'warn',
|
|
|
|
// ADR-013: JSDoc for exported functions (Phase 2 - warn only)
|
|
// 'jsdoc/require-jsdoc': ['warn', {
|
|
// require: { FunctionDeclaration: true, MethodDefinition: true },
|
|
// contexts: ['ExportNamedDeclaration > FunctionDeclaration'],
|
|
// }],
|
|
},
|
|
ignorePatterns: [
|
|
'node_modules',
|
|
'.next',
|
|
'out',
|
|
'dist',
|
|
'test-results',
|
|
'*.config.js',
|
|
'*.config.ts',
|
|
],
|
|
}
|