30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
// Flat ESLint config (ESLint 9) for 0pt's capability code.
|
|
//
|
|
// Scope: src/ + tests/ — the backend capability layer this repo's Wave 2/3
|
|
// hardening actually owns. The v0-generated Next.js UI (app/, components/,
|
|
// hooks/, lib/) is intentionally NOT linted here; wiring the full Next lint
|
|
// preset over that generated surface is a separate concern. `pnpm run lint`
|
|
// runs this over src + tests.
|
|
import js from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default tseslint.config(
|
|
{
|
|
ignores: ["node_modules/**", ".next/**", "**/*.d.ts"],
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ["src/**/*.ts", "tests/**/*.ts"],
|
|
languageOptions: {
|
|
ecmaVersion: 2022,
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
// Underscore-prefixed args are deliberate no-op/interface-shaped params
|
|
// (e.g. the local/no-op client method params in src/clients/*).
|
|
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
|
|
},
|
|
},
|
|
);
|