Files
clawmates/frontend/eslint.config.mjs
T
Omar SobhandClaude Opus 4.8 355a6f23b9 Add wc-capture: forensic front-end capture of our deployed app
Playwright tool to mirror our own WorkClaw app's compiled front-end (CSS,
JS, fonts, SVGs) and dump each screen's DOM + computed styles, for matching
Clawmates to the real thing instead of guessing from screenshots.

Auth is by hand (you log in, incl. the emailed code, it reuses the session);
`live` mode does login + capture in one go for OTP logins. out/ + the one-off
grab scripts are gitignored; eslint ignores the captured minified assets.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-12 08:00:16 -05:00

33 lines
1010 B
JavaScript

import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
{
rules: {
// Project-wide discipline: files stay under 1,250 lines and no
// deferred-work markers ever land (mirrors ci/check-*.sh gates).
"max-lines": ["error", { max: 1250, skipBlankLines: false, skipComments: false }],
"no-warning-comments": [
"error",
{ terms: ["todo", "fixme", "xxx", "hack"], location: "anywhere" },
],
},
},
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
// Forensic capture of our own deployed app — minified assets + one-off
// scripts, not part of the product source.
"tools/wc-capture/**",
]),
]);
export default eslintConfig;