Files
crosscode-platform/eslint.config.mjs
T
joshuaandClaude Opus 5.5 9e94c82502 Contracts 1.0.0: generated JSON Schema for every contract
- schemas/: JSON Schema (draft 2020-12) generated from the zod schemas by
  npm run build (scripts/json-schemas.cjs), exported as
  @crosscode/contracts/schemas/*
- Test: files match the zod schemas, every sample passes them (Ajv)
- Version 1.0.0, CHANGELOG and README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 14:30:37 +02:00

22 lines
882 B
JavaScript

import { defineConfig, globalIgnores } from "eslint/config";
import js from "@eslint/js";
import tseslint from "typescript-eslint";
// One flat config for the whole monorepo. Run with `npm run lint` at the root.
export default defineConfig([
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.cjs", "**/jest.config.js"],
languageOptions: { sourceType: "commonjs", globals: { module: "writable", require: "readonly", __dirname: "readonly", process: "readonly", console: "readonly" } },
rules: { "@typescript-eslint/no-require-imports": "off" },
},
{
rules: {
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
"@typescript-eslint/consistent-type-imports": "error",
},
},
globalIgnores(["**/node_modules/**", "**/dist/**", "**/coverage/**", "**/schemas/**"]),
]);