-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
39 lines (37 loc) · 1.11 KB
/
eslint.config.mjs
File metadata and controls
39 lines (37 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import tsParser from "@typescript-eslint/parser";
const typescriptFiles = ["src/**/*.ts", "scripts/**/*.ts"];
const operatorFacingCliFiles = [
// Migration progress and rollback status are intentionally printed for humans.
"src/db/migrate.ts",
// These are operator/entrypoint surfaces that fail loudly on startup problems.
"src/index.ts",
"src/config.ts",
"src/execution/agent-entrypoint.ts",
// Repo-owned scripts are mostly verifiers/CLI utilities, so console output is expected.
"scripts/**/*.ts",
];
export default [
{
ignores: ["node_modules/**", "tmp/**", ".gsd/**"],
},
{
files: typescriptFiles,
languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
// Start with the repo contract this slice actually needs: catch accidental
// console usage in normal source files without introducing a noisy day-one gate.
"no-console": "error",
},
},
{
files: operatorFacingCliFiles,
rules: {
// These surfaces intentionally communicate directly with operators.
"no-console": "off",
},
},
];