Этап 1: каркас монорепо, Docker Compose, Prisma-схема, healthcheck
- pnpm workspaces: apps/web, apps/api, packages/md, packages/shared - docker compose: db (PostgreSQL 16), api, web (nginx) - Prisma-схема и первая миграция (pg_trgm, GIN-индексы поиска) - GET /api/health, ESLint + Prettier, .env.example, README Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9ed4d4ce43
commit
521533a8e3
@@ -0,0 +1,33 @@
|
||||
// Общий ESLint-конфиг монорепо (flat config).
|
||||
import js from '@eslint/js';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import reactHooks from 'eslint-plugin-react-hooks';
|
||||
import globals from 'globals';
|
||||
|
||||
export default tseslint.config(
|
||||
{
|
||||
ignores: [
|
||||
'**/dist/**',
|
||||
'**/dev-dist/**',
|
||||
'**/node_modules/**',
|
||||
'new_design/**',
|
||||
'kb-seed/**',
|
||||
'assets/**',
|
||||
'content/**',
|
||||
'originals/**',
|
||||
],
|
||||
},
|
||||
js.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
{
|
||||
languageOptions: { globals: { ...globals.node, ...globals.browser } },
|
||||
rules: {
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['apps/web/**/*.{ts,tsx}'],
|
||||
plugins: { 'react-hooks': reactHooks },
|
||||
rules: { ...reactHooks.configs.recommended.rules },
|
||||
},
|
||||
);
|
||||
Reference in New Issue
Block a user