chore: pnpm workspace — landing, api, shared
apps/landing: Next.js 16 (App Router, standalone), Tailwind 4, ESLint с запретом импорта из api. apps/api: Hono + better-sqlite3, сборка tsup, /api/health. packages/shared: исходники TS без сборки. Vitest projects.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import next from 'eslint-config-next';
|
||||
|
||||
const config = [
|
||||
...next,
|
||||
{
|
||||
rules: {
|
||||
// лендинг не знает о бэкенде: общий код только через @kvarta/shared
|
||||
'no-restricted-imports': ['error', { patterns: ['@kvarta/api', '**/apps/api/**'] }],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user