- apps/api: FastAPI backend with Dockerfile - apps/web: Next.js frontend with Dockerfile - apps/sensor: Signal collection agent - packages: shared packages Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
919 B
JavaScript
37 lines
919 B
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 in development
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
|
|
|
|
// 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': ['error', { argsIgnorePattern: '^_' }],
|
|
},
|
|
ignorePatterns: [
|
|
'node_modules',
|
|
'.next',
|
|
'out',
|
|
'dist',
|
|
'test-results',
|
|
'*.config.js',
|
|
'*.config.ts',
|
|
],
|
|
}
|