- Add admin-next/: full Next.js + Prisma + shadcn admin panel (45 API routes, 76 components) - docker-compose: tg_shop_admin service (port 3000, shared db/shop.db, prisma), bot talks to it via ADMIN_CHAT_URL=http://tg_shop_admin:3000/api/chat - tor-proxy now proxies onion admin to tg_shop_admin:3000 (new panel) - chatbotService: ADMIN_CHAT_URL default = http://tg_shop_admin:3000/api/chat (removed localhost:3100 anachronism) - .env admin secrets gitignored (admin-next/.env)
51 lines
1.6 KiB
JavaScript
Executable File
51 lines
1.6 KiB
JavaScript
Executable File
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
|
|
import nextTypescript from "eslint-config-next/typescript";
|
|
import { dirname } from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
|
|
const eslintConfig = [...nextCoreWebVitals, ...nextTypescript, {
|
|
rules: {
|
|
// TypeScript rules
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/prefer-as-const": "off",
|
|
"@typescript-eslint/no-unused-disable-directive": "off",
|
|
|
|
// React rules
|
|
"react-hooks/exhaustive-deps": "off",
|
|
"react-hooks/purity": "off",
|
|
"react/no-unescaped-entities": "off",
|
|
"react/display-name": "off",
|
|
"react/prop-types": "off",
|
|
"react-compiler/react-compiler": "off",
|
|
|
|
// Next.js rules
|
|
"@next/next/no-img-element": "off",
|
|
"@next/next/no-html-link-for-pages": "off",
|
|
|
|
// General JavaScript rules
|
|
"prefer-const": "off",
|
|
"no-unused-vars": "off",
|
|
"no-console": "off",
|
|
"no-debugger": "off",
|
|
"no-empty": "off",
|
|
"no-irregular-whitespace": "off",
|
|
"no-case-declarations": "off",
|
|
"no-fallthrough": "off",
|
|
"no-mixed-spaces-and-tabs": "off",
|
|
"no-redeclare": "off",
|
|
"no-undef": "off",
|
|
"no-unreachable": "off",
|
|
"no-useless-escape": "off",
|
|
},
|
|
}, {
|
|
ignores: ["node_modules/**", ".next/**", "out/**", "build/**", "next-env.d.ts", "examples/**", "skills"]
|
|
}];
|
|
|
|
export default eslintConfig;
|