Files
agentic-dev/eslint.config.js
Danijel Martinek 1ae4a2385c test(fixtures): add vite-kitchen fixture repo
Minimal Vite + React + TS + Tailwind app with a typed-props Button
component (the future react-docgen-typescript scan target), landed at
fixtures/ outside the pnpm workspace and turbo graph. Its dependencies
exist on paper only — the runner installs them after cloning (story 04);
no lockfile, never pnpm-installed here.

Ignore surfaces follow the docs/product/reference precedent: fallow,
root ESLint, prettier, and the coverage:diff ALLOWED_GLOBS all skip
fixtures/**.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016j8z4VHjedXDTjEDNg7qHK
2026-07-12 21:36:21 +02:00

47 lines
1.2 KiB
JavaScript

/**
* Root ESLint config — covers scripts/ and any other plain-JS files at the
* repo root. Package-level configs (packages/*, apps/*) define their own
* eslint.config.js and take precedence for files inside those directories.
*/
import js from "@eslint/js";
// Minimal Node.js globals for scripts — avoids a peer-dep on `globals`.
const nodeGlobals = {
process: "readonly",
console: "readonly",
URL: "readonly",
Buffer: "readonly",
__dirname: "readonly",
__filename: "readonly",
setTimeout: "readonly",
clearTimeout: "readonly",
setInterval: "readonly",
clearInterval: "readonly",
};
export default [
{
ignores: [
"node_modules/**",
"packages/**",
"apps/**",
"turbo/**",
"playwright.config.ts",
// Design reference material (ADR-029) — read-only prototypes, never linted
"docs/product/reference/**",
// Test fixture repos — standalone apps outside the pnpm workspace and
// turbo graph, served to tests as git remotes; never linted
"fixtures/**",
],
},
js.configs.recommended,
{
files: ["scripts/**/*.{mjs,cjs,js}"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: nodeGlobals,
},
},
];