package.json, tsconfig, eslint, генерация типов из OpenAPI-спеки, модули config/redact/errors/money/sanitize/cache с тестами и обезличенные фикстуры живых ответов API openrusrouter.ru. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
585 B
JavaScript
20 lines
585 B
JavaScript
// @ts-check
|
|
import js from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ["dist/**", "node_modules/**", "src/generated/**"] },
|
|
js.configs.recommended,
|
|
...tseslint.configs.strict,
|
|
{
|
|
rules: {
|
|
// stdout занят протоколом MCP (stdio): любая печать туда ломает сессию.
|
|
"no-console": ["error", { allow: ["error"] }],
|
|
},
|
|
},
|
|
{
|
|
files: ["scripts/**/*.mjs"],
|
|
languageOptions: { globals: { process: "readonly", console: "readonly", URL: "readonly" } },
|
|
},
|
|
);
|